There is a problem with page.tpl.php with the secondary tabs not showing in the JS overlays. For example, in webform and Media module.

I changed the tabs code from:

<?php if (!empty($tabs['#primary'])): ?>
 <div class="tabs"><?php print render($tabs); ?></div>
<?php endif; ?>

To:

<?php if (!empty($tabs['#primary']) || !empty($tabs['#secondary'])): ?>
  <div class="tabs"><?php print render($tabs); ?></div>
<?php endif; ?>

Comments

jacine’s picture

Thanks for this report. I'm already aware of this problem, which is related to this core bug: #953034: [meta] Themes improperly check renderable arrays when determining visibility. It will likely need to be <?php if ($tabs = render($tabs)): ?>, though I'd like to wait a little while and see what pans out there.

Amarjit’s picture

Ah yes, thanks.

jacine’s picture

Status: Active » Fixed

A fix has been committed, and will be released shortly. Thank you! :)

Status: Fixed » Closed (fixed)

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

TelFiRE’s picture

Priority: Normal » Critical
Status: Closed (fixed) » Needs work

It's been a year and was never committed?