Skip to content

Commit 5add3c5

Browse files
committed
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.
1 parent 612c30c commit 5add3c5

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

main/inc/lib/extra_field.lib.php

+10-3
Original file line numberDiff line numberDiff line change
@@ -2257,10 +2257,10 @@ public function return_form($url, $action)
22572257

22582258
$form->addText(
22592259
'display_text',
2260-
[get_lang('Name'), $translateButton]
2260+
[get_lang('Title'), $translateButton]
22612261
);
22622262
} else {
2263-
$form->addText('display_text', get_lang('Name'));
2263+
$form->addText('display_text', get_lang('Title'));
22642264
}
22652265

22662266
// Field type
@@ -2274,7 +2274,14 @@ public function return_form($url, $action)
22742274
['id' => 'field_type']
22752275
);
22762276
$form->addLabel(get_lang('Example'), '<div id="example">-</div>');
2277-
$form->addText('variable', get_lang('FieldLabel'), false);
2277+
$form->addElement(
2278+
'text',
2279+
'variable',
2280+
[
2281+
get_lang('SysId'),
2282+
get_lang('ExtraFieldIdComment')
2283+
]
2284+
);
22782285
$form->addElement(
22792286
'text',
22802287
'field_options',

0 commit comments

Comments
 (0)