Hello,

while debugging anoter problem when loading forms in thickbox, I have noticed that it is caused by Drupal.behaviors.verticalTabsReload.

It complains about some undefined legth in the $.each line. Interestingly the problem does not arise for the admin user.

Can somebody familiar with jQuery quickly guide me, how to implement some validity check?

Drupal.behaviors.verticalTabsReload = function() {
  $.each(Drupal.settings.verticalTabs, function(k, v) {
    if (v.callback && Drupal.verticalTabs[v.callback]) {
      $('a.vertical-tabs-list-' + k + ' span.summary').html(Drupal.verticalTabs[v.callback].apply(this, v.args));
    }
  });
}

Comments

digi24’s picture

Title: Drupal.behaviors.verticalTabsReload and uid>1 » Drupal.behaviors.verticalTabsReload when no tabs present

After further investigation, I think I have identified the problem: The reload behaviour gets executed even when no tabs are present (this explains why it worked for uid=1, who had more rights).

DeFr’s picture

The patch in #488746: Compatibilty with Popups 2 should fix this.

digi24’s picture

Status: Active » Closed (fixed)

Thank you very much, problem solved.