File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
administrator/components/com_fields Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -94,10 +94,10 @@ protected function getOptions()
9494 if ($ c instanceof FieldsServiceInterface) {
9595 $ contexts = $ c ->getContexts ();
9696
97- foreach ($ contexts as $ context ) {
97+ foreach ($ contexts as $ contextKey => $ contextName ) {
9898 $ newOption = new \stdClass ();
99- $ newOption ->value = strtolower ( $ component -> value . ' . ' . $ context ) ;
100- $ newOption ->text = $ component ->text . ' - ' . Text::_ ($ context );
99+ $ newOption ->value = $ contextKey ;
100+ $ newOption ->text = $ component ->text . ' - ' . Text::_ ($ contextName );
101101 $ options [] = $ newOption ;
102102 }
103103 } else {
Original file line number Diff line number Diff line change 88 <fieldset name =" request" >
99 <fields name =" request" >
1010 <field
11- name=" extension "
11+ name=" context "
1212 type=" ComponentsFieldgroup"
1313 label=" COM_FIELDS_CHOOSE_CONTEXT_LABEL"
1414 required=" true"
You can’t perform that action at this time.
0 commit comments