From 7339c1c4989a9768a0bb41ccd06df8c4ebfa67f5 Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Fri, 2 Feb 2018 11:35:04 +1300 Subject: [PATCH] FIX Update display rules not enabled warning message to be full width --- code/Model/EditableFormField.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/code/Model/EditableFormField.php b/code/Model/EditableFormField.php index 83b1523..7b9d6c5 100755 --- a/code/Model/EditableFormField.php +++ b/code/Model/EditableFormField.php @@ -343,14 +343,14 @@ class EditableFormField extends DataObject { // Check display rules if ($this->Required) { - return new FieldList( - LabelField::create( - _t( + return FieldList::create( + LiteralField::create( + 'DisplayRulesNotEnabled', + '
' . _t( __CLASS__.'.DISPLAY_RULES_DISABLED', 'Display rules are not enabled for required fields. Please uncheck "Is this field Required?" under "Validation" to re-enable.' - ) + ) . '
' ) - ->addExtraClass('message warning') ); }