From 8cdb601f7a945c0cb75e840f9d286596d6f24ab6 Mon Sep 17 00:00:00 2001 From: Bauke Zwaan Date: Tue, 25 Oct 2022 10:39:54 +0200 Subject: [PATCH] phplinting --- code/Model/EditableFormField.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/code/Model/EditableFormField.php b/code/Model/EditableFormField.php index 1f56ccd..af65a44 100755 --- a/code/Model/EditableFormField.php +++ b/code/Model/EditableFormField.php @@ -446,11 +446,10 @@ class EditableFormField extends DataObject ->max('Sort') + 1; } - // Include _new_ Email Fields by default in GridField summary + // Include _new_ Email Fields by default in GridField summary (not possible via $defaults since the initial record is always EditableFormField) if ($this->isChanged('ClassName') && $this->ClassName === EditableEmailField::class) { $this->ShowInSummary = true; - }; - + } } /**