Fix: Länder-Filter im Lehrplan-Bezug (modul_detail.php) wirkungslos
Der Filter-JS liest a.dataset.anchorType, aber die Anker-<div>s setzten kein data-anchor-type (nur data-country). Dadurch war `type === 'fach'` nie wahr → für ein gewähltes Land wurde nie ein Anker ausgeblendet. Fix: data-anchor-type am Anker-div ergänzt. Gilt für alle Modul-Seiten. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -689,6 +689,7 @@ if ($MODULE_ID === 'kofferdetektiv') {
|
||||
<?php foreach ($list as $a): ?>
|
||||
<?php $cm = $countryMeta[$a['country']] ?? ['flag' => '🏳️', 'label' => $a['country']]; ?>
|
||||
<div class="md-anchor md-anchor--<?= esc($a['anchor_type']) ?>"
|
||||
data-anchor-type="<?= esc($a['anchor_type']) ?>"
|
||||
data-country="<?= esc($a['country']) ?>">
|
||||
<div class="md-anchor-flag" title="<?= esc($cm['label']) ?>"><?= $cm['flag'] ?></div>
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user