jDiction Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

jDiction 2.2.0 released. http://jdiction.org/downloads

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - pipedream

Pages: [1]
1
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.

Pages: [1]