Drupal 7.0
Rubik 7.x-4.0-beta4

Taxonomy manager doesnt work. After click on buttons to perform any operation, nothing happens.

No errors in Firebug.

After change theme back to Seven, everything works fine.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mh86’s picture

Project: Rubik » Tao
Version: 7.x-4.0-beta4 » 7.x-3.0-beta3

the taxonomy manager relies on some ids in fieldsets.
the tao theme overrides the fieldset theme function, but the #id attribute gets lost. adding of element_set_attributes($element, array('id')); to the function tao_preprocess_fieldset (as it is done in the original theme_fieldset) solves the problem.

dgastudio’s picture

thank u very much. Solved

dgastudio’s picture

Status: Active » Closed (fixed)
mh86’s picture

Status: Closed (fixed) » Active

in my opinion, this fix should be added to the Tao theme

dqd’s picture

agree

3rdLOF’s picture

Bravo.

For Rubik and subthemes the best option for those who do not want to touch Tao is to copy the entire tao_preprocess_fieldset(&$vars) function over to Rubik template.php, replacing the one there, applying this fix and making sure to rename it accordingly: rubik_preprocess_fieldset(&$vars).

Tested it, works like butter.

romaingar’s picture

Hello kannary,
I've tested your solution but it dosen't work for me. this is my code for \themes\rubik\template.php
It's not very important because it's work with the seven theme...
Bye.

/**
 *OLD Preprocessor for theme('fieldset').
 
function rubik_preprocess_fieldset(&$vars) {
  if (!empty($vars['element']['#collapsible'])) {
    $vars['title'] = "<span class='icon'></span>" . $vars['title'];
  }
}*/
/**
 *NEW  Implementation of preprocess_fieldset().
 */
function rubik_preprocess_fieldset(&$vars) {
  $element = $vars['element'];
  $vars['attributes'] = $element['#attributes'];
  $vars['attributes']['class'][] = 'fieldset';
  if (!empty($element['#title'])) {
    $vars['attributes']['class'][] = 'titled';
  }

  $description = !empty($element['#description']) ? "<div class='description'>{$element['#description']}</div>" : '';
  $children = !empty($element['#children']) ? $element['#children'] : '';
  $value = !empty($element['#value']) ? $element['#value'] : '';
  $vars['content'] = $description . $children . $value;
  $vars['title'] = !empty($element['#title']) ? $element['#title'] : '';
  $vars['hook'] = 'fieldset';
}
sherakama’s picture

Attached is a patch for rubik's preprocess function to preserve the ID attribute. Apply to template.php.

CoffeyMachine’s picture

Status: Active » Fixed

This fix was included in #1105086: Add element id to fieldsets

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Peter Arius’s picture

Version: 7.x-3.0-beta3 » 7.x-3.0-beta4
Status: Closed (fixed) » Active

Setting this to active again, because for

Tao 7.x-3.0-beta4
Rubik 7.x-4.0-beta8
Taxonomy Manager 7.x-1.0-rc1
Drupal 7.19

the issue still shows up.

For Taxonomy Manager, the issue has been filed as #874488: Clicking Add button does nothing - incompatibility with Devel module and Tao based themes (like Rubik).
There in #30, a change to tao's template php is suggested, which seems to fix the issue.

Please, kindly review the fix and consider adding it to tao.

sylus’s picture

Adding a patch for latest dev

wiifm’s picture

Status: Active » Needs review
FileSize
625 bytes

Attached is the same patch in #12 without the whitespace issues.

Can confirm this resolves the bug.

Also worth reading is #874488: Clicking Add button does nothing - incompatibility with Devel module and Tao based themes (like Rubik)

wiifm’s picture

Title: Taxonomy manager doesnt work. » Taxonomy Manager broken - incompatibility with Tao based themes (like Rubik)

re-titling for better searchability

haydeniv’s picture

Status: Needs review » Fixed

Committed: 2eef901

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit 2eef901 on 7.x-3.x, 8.x-3.x by haydeniv:
    Issue #1016844 by wiifm, sylus: Taxonomy Manager incompatibility with...