This commit is contained in:
2026-03-06 21:51:26 +01:00
parent 25a9836f2e
commit 6e5f73be6c
2 changed files with 17 additions and 1 deletions

View File

@@ -266,7 +266,9 @@ $runs = $pdo->query(
<option value="">Vorlage auswählen (optional)</option>
<?php foreach ($commands as $c): ?>
<?php if (!auth_is_admin() && !empty($c['admin_only'])) { continue; } ?>
<option value="<?= e((string)$c['id']) ?>"><?= e($c['label'] ?? '') ?></option>
<option value="<?= e((string)$c['id']) ?>" data-command="<?= e((string)($c['command'] ?? '')) ?>">
<?= e($c['label'] ?? '') ?>
</option>
<?php endforeach; ?>
</select>
</label>