From 91eb97e37cbe9d7841d5c8fd6a7c48cec7fe621e Mon Sep 17 00:00:00 2001 From: Ian Walls Date: Wed, 22 Jun 2016 10:02:38 -0400 Subject: [PATCH] Set EditableCustomRule:FieldValue to Varchar(255) Fixes issue #477; without explicitly setting the length here, the field defaults to 50, making it impossible to match HasValue on longer field options. --- code/model/EditableCustomRule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/model/EditableCustomRule.php b/code/model/EditableCustomRule.php index c31df5c..df2e8ee 100644 --- a/code/model/EditableCustomRule.php +++ b/code/model/EditableCustomRule.php @@ -23,7 +23,7 @@ class EditableCustomRule extends DataObject { private static $db = array( 'Display' => 'Enum("Show,Hide")', 'ConditionOption' => 'Enum("IsBlank,IsNotBlank,HasValue,ValueNot,ValueLessThan,ValueLessThanEqual,ValueGreaterThan,ValueGreaterThanEqual")', - 'FieldValue' => 'Varchar' + 'FieldValue' => 'Varchar(255)' ); private static $has_one = array(