Skip to content

Commit

Permalink
Fix tag ID uniqueness
Browse files Browse the repository at this point in the history
  • Loading branch information
Alkarex committed Nov 11, 2024
1 parent e9ce099 commit 0eeeb3e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/views/helpers/index/tags.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@
<?php if (!empty($remainingTags)): // more than 7 tags: show dropdown menu ?>
<li class="item tag">
<div class="dropdown">
<div id="dropdown-tags2-<?= $this->entry->id() ?>" class="dropdown-target"></div>
<a class="dropdown-toggle" href="#dropdown-tags2-<?= $this->entry->id() ?>"><?= _i('down') ?></a>
<?php $dropId = 'dropdown-tags2-' . $this->entry->id() . '-' . hrtime(true); ?>
<div id="<?= $dropId ?>" class="dropdown-target"></div>
<a class="dropdown-toggle" href="#<?= $dropId ?>"><?= _i('down') ?></a>
<ul class="dropdown-menu">
<li class="dropdown-header"><?= _t('index.tag.related') ?></li>
<?php if (Minz_Request::controllerName() === 'index'): ?>
Expand Down

0 comments on commit 0eeeb3e

Please sign in to comment.