jDiction Forum

English => Install & Configure jDiction => Topic started by: pipedream on July 12, 2014, 05:59:31 am

Title: Fields do not appear when the translation page is opened
Post by: pipedream on July 12, 2014, 05:59:31 am
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.
Title: Re: Fields do not appear when the translation page is opened
Post by: Harald Leithner on July 22, 2014, 05:27:51 pm
Thx, I fixed it.