From 5add3c5cf3691da1590d7488ebdf934a2b32b9dc Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Thu, 31 Aug 2023 23:31:27 +0200 Subject: [PATCH] Minor: Admin: Change labels of fields and add comment in extra fields add/edit form to avoid confusion between title and ID of the field. --- main/inc/lib/extra_field.lib.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/main/inc/lib/extra_field.lib.php b/main/inc/lib/extra_field.lib.php index a6a39b9b3af..2083ce4fb26 100755 --- a/main/inc/lib/extra_field.lib.php +++ b/main/inc/lib/extra_field.lib.php @@ -2257,10 +2257,10 @@ public function return_form($url, $action) $form->addText( 'display_text', - [get_lang('Name'), $translateButton] + [get_lang('Title'), $translateButton] ); } else { - $form->addText('display_text', get_lang('Name')); + $form->addText('display_text', get_lang('Title')); } // Field type @@ -2274,7 +2274,14 @@ public function return_form($url, $action) ['id' => 'field_type'] ); $form->addLabel(get_lang('Example'), '
-
'); - $form->addText('variable', get_lang('FieldLabel'), false); + $form->addElement( + 'text', + 'variable', + [ + get_lang('SysId'), + get_lang('ExtraFieldIdComment') + ] + ); $form->addElement( 'text', 'field_options',