From b63c79cf4a290802e80f2d27d0370a5c6f74e74f Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Thu, 16 Jan 2025 18:04:07 +1300 Subject: [PATCH] ENH Pass invalid value to ValidationResult --- code/Model/SiteTree.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/Model/SiteTree.php b/code/Model/SiteTree.php index 7a4678dee8..e410ed96c9 100755 --- a/code/Model/SiteTree.php +++ b/code/Model/SiteTree.php @@ -1612,7 +1612,8 @@ public function validate(): ValidationResult _t( 'SilverStripe\\CMS\\Model\\SiteTree.InvalidExtraMeta', 'Custom Meta Tags does not contain valid HTML', - ) + ), + value: $this->ExtraMeta, ); }