From 38987053ecf9ad93760ec8b47ef3e70b65a5c97f Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Thu, 8 Aug 2024 12:49:41 +1200 Subject: [PATCH] FIX Update CMS fields now that they're being scaffolded --- src/ErrorPage.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ErrorPage.php b/src/ErrorPage.php index 7302c43..db4c31d 100644 --- a/src/ErrorPage.php +++ b/src/ErrorPage.php @@ -48,6 +48,14 @@ class ErrorPage extends Page "ErrorCode" => 400 ]; + private static array $scaffold_cms_fields_settings = [ + 'ignoreFields' => [ + // Scaffolded field is incorrect and poorly placed, + // so don't waste time scaffolding it + 'ErrorCode', + ], + ]; + private static $table_name = 'ErrorPage'; private static $allowed_children = [];