Validation now runs only when Create Ticket is clicked.

* Removed the live body binding causing premature $commit.
* Details editor still syncs before submit.
* Added duplicate-submit guard.
* Should no longer need clicking Save/Create twice.
* Append-only changelog.
* module.json version 1.9.42.
This commit is contained in:
Mark Gregory
2026-06-23 11:13:54 +01:00
parent 7c4a94b5ea
commit 4ee0b8e604
6 changed files with 92 additions and 39 deletions
+12
View File
@@ -127,3 +127,15 @@
- Eager-loaded category agents where categories are used by ticket creation/editing and agent assignment logic to remove the detected N+1 query warning.
- Added regression coverage to ensure soft-deleted ticket references are never reused.
- Preserved append-only changelog history.
- version: 1.9.42
date: 2026-06-23
type: bugfix
summary: Stop premature Helpdesk ticket create validation and single-click submit failures.
changes:
- Moved TicketCreate validation from Livewire attribute-based live validation to submit-only rules so errors appear only after Create Ticket is clicked.
- Changed the hidden rich-text Details body field away from live model updates to prevent a pre-submit $commit request from racing the save action.
- Kept the editor submit synchronisation so the latest rich-text content is copied into the Livewire body property before validation.
- Added an isSaving guard and save-target loading state so duplicate clicks cannot create duplicate submit attempts.
- Added regression coverage proving draft edits do not fire validation before submit.
- Preserved append-only changelog history.