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

Author Topic: Fields do not appear when the translation page is opened  (Read 10782 times)

pipedream

  • Newbie
  • *
  • Posts: 3
    • View Profile
Fields do not appear when the translation page is opened
« 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.
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: Fields do not appear when the translation page is opened
« Reply #1 on: July 22, 2014, 05:27:51 pm »

Thx, I fixed it.
Logged
Joomla! 5.0 Release Manager
Vote at JED