From 84146acc88906ae2de3eaee4a5b5ad1b76d4a04d Mon Sep 17 00:00:00 2001 From: Iliain Date: Fri, 16 Oct 2020 12:45:29 +1100 Subject: [PATCH] Replace incorrect ClassName usage with text updateEditForm was incorrectly using a ClassName to search for a field. --- src/Admin/MultisitesCmsMainExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Admin/MultisitesCmsMainExtension.php b/src/Admin/MultisitesCmsMainExtension.php index 522d543..aabf4fe 100644 --- a/src/Admin/MultisitesCmsMainExtension.php +++ b/src/Admin/MultisitesCmsMainExtension.php @@ -106,7 +106,7 @@ public function updateEditForm($form) { $className = $classNameField->Value(); if ($className === Site::class) { - $form->Fields()->removeByName(array(SilverStripeNavigator::class)); + $form->Fields()->removeByName(['SilverStripeNavigator']); $form->removeExtraClass('cms-previewable'); } }