fix: scontainers edit saves existing record instead of creating new
Fixes static container admin edit flow by preserving id in hiddenFields and adding route-id fallback during save. Adds regression tests for edit/create id behavior, updates release docs (changelog/testing/CLAUDE), and appends SonarQube open issues to docs/TODO. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
13
.paul/changelog/2026-04-18.md
Normal file
13
.paul/changelog/2026-04-18.md
Normal file
@@ -0,0 +1,13 @@
|
||||
# 2026-04-18
|
||||
|
||||
## Co zrobiono
|
||||
|
||||
- [Phase 15, Plan 01] Naprawiono regresje zapisu edycji kontenerow statycznych (update zamiast tworzenia nowego rekordu).
|
||||
- Przeniesiono przekazywanie `id` w formularzu Scontainers do `hiddenFields` oraz dodano fallback `id` z route parametru.
|
||||
- Dodano testy regresyjne dla mapowania `id` i create-flow w `ScontainersControllerTest`.
|
||||
|
||||
## Zmienione pliki
|
||||
|
||||
- `autoload/admin/Controllers/ScontainersController.php`
|
||||
- `tests/Unit/admin/Controllers/ScontainersControllerTest.php`
|
||||
- `.paul/phases/15-scontainers-edit-save-fix/15-01-SUMMARY.md`
|
||||
Reference in New Issue
Block a user