From f6c4a901fbe0ccb470820818739fdddc2b1c73e7 Mon Sep 17 00:00:00 2001 From: Marvin Barz <60610009+M-Barz@users.noreply.github.com> Date: Tue, 22 Feb 2022 12:47:03 +0100 Subject: [PATCH] BT-23546: Added character suffix to max length in metadata fields (#4060) --- .../classes/Types/class.ilAdvancedMDFieldDefinitionText.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Services/AdvancedMetaData/classes/Types/class.ilAdvancedMDFieldDefinitionText.php b/Services/AdvancedMetaData/classes/Types/class.ilAdvancedMDFieldDefinitionText.php index 25424c3213ff..c83a3bf25dd1 100644 --- a/Services/AdvancedMetaData/classes/Types/class.ilAdvancedMDFieldDefinitionText.php +++ b/Services/AdvancedMetaData/classes/Types/class.ilAdvancedMDFieldDefinitionText.php @@ -166,6 +166,7 @@ public function addCustomFieldToDefinitionForm(ilPropertyFormGUI $a_form, $a_dis $max = new ilNumberInputGUI($lng->txt("md_adv_text_max_length"), "max"); $max->setValue($this->getMaxLength()); $max->setSize(10); + $max->setSuffix($lng->txt("characters")); $max->setMinValue(1); $max->setMaxValue(4000); // DB limit $a_form->addItem($max);