From f7bc044df81f16a70f4867722b5722ab73bb3bd6 Mon Sep 17 00:00:00 2001 From: Marvin Barz Date: Fri, 18 Feb 2022 15:12:33 +0100 Subject: [PATCH] BT-23546: Added character suffix to max length in metadata fields --- .../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);