fix page creation validation and persistence
Validate required page fields and localized translations, detect route collisions, and save pages and translations atomically with rollback on failure. Report creation errors while preserving submitted form values, safely encode Alpine.js values, and add English and German error messages. Return null for failed inserts and add page persistence tests.
This commit is contained in:
@@ -30,6 +30,7 @@ return [
|
||||
'theme' => 'Theme',
|
||||
'visible-in-page-overview' => 'visible in page overview',
|
||||
'page-created' => 'Page successfully created',
|
||||
'page-create-failed' => 'Page could not be created. Check required fields, localized values, routes, and the database connection, then try again.',
|
||||
'page-updated' => 'Page successfully updated',
|
||||
'page-deleted' => 'Page removed',
|
||||
'page-type' => 'Page type',
|
||||
|
||||
Reference in New Issue
Block a user