Fix settings form being sent as PUT
CI / Deploy / test (push) Successful in 49s
CI / Deploy / deploy (push) Skipped

FormHelper adds a hidden _method=PUT for persisted entities, which the
POST-only admin:settings route rejected with a MissingRouteException.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Opus 5.5 committed 2026-11-07 14:17:45 +01:00
1 parent c41005e6a2
commit 9dad7ab939
2 files changed
+12 -1

No files matched your search

+1 -1
View File
@@ -127,7 +127,7 @@ $url = fn(string $name, array $params = []) => ['_name' => $name, 'token' => $ad
<section class="card">
<h2><?= __('Einstellungen') ?></h2>
<?= $this->Form->create($poll, ['url' => $url('admin:settings')]) ?>
<?= $this->Form->create($poll, ['url' => $url('admin:settings'), 'type' => 'post']) ?>
<?= $this->Form->control('title', ['label' => __('Titel'), 'maxlength' => 200]) ?>
<?= $this->Form->control('is_active', [
'type' => 'checkbox',