Skip to content

Commit

Permalink
fix: Fix the Collection group's default value
Browse files Browse the repository at this point in the history
If the group contained a special char (e.g. "&"), the comparison didn't
work because `$name` is escaped while `$group->name` isn't.
  • Loading branch information
marienfressinaud committed Oct 31, 2024
1 parent 4542d36 commit c7083af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/collections/groups/edit.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
</option>

<?php foreach ($groups as $group): ?>
<option <?= $name === $group->name ? 'selected' : '' ?> value="<?= $group->name ?>">
<option <?= $this->safe('name') === $group->name ? 'selected' : '' ?> value="<?= $group->name ?>">
<?= protect($group->name) ?>
</option>
<?php endforeach; ?>
Expand Down

0 comments on commit c7083af

Please sign in to comment.