English > Install & Configure jDiction
Fields do not appear when the translation page is opened
(1/1)
pipedream:
When opening a custom extension translation page, the fields on the first tab are not displayed.
If the tab is clicked, then the fields are displayed.
If there are no tabs (only 1 field set), fields are also displayed.
This only happens when the attribute name of the first fieldset tag in jdiction.xml is not equal to "main".
To prevent this small bug, I changed the file administrator/components/com_jdiction/views/translation/tmpl/form.php:
148 - if ($tabs) { echo JHtml::_('bootstrap.startTabSet', 'language-'.$language->lang_code.'-fieldset-tabs', array('active' => 'language-'.$language->lang_code.'-tab-main')); }
148 + $fieldsets = $this->form->getFieldsets();
149 + if ($tabs) { echo JHtml::_('bootstrap.startTabSet', 'language-'.$language->lang_code.'-fieldset-tabs', array('active' => 'language-'.$language->lang_code.'-tab-'.reset($fieldsets)->name)); }
149 - foreach($this->form->getFieldsets() as $fieldset) :
150 + foreach($fieldsets as $fieldset) :
Hope it helps.
Harald Leithner:
Thx, I fixed it.
Navigation
[0] Message Index
Go to full version