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.
This commit is contained in:
Ian Walls 2016-06-22 10:02:38 -04:00
parent 2dce050087
commit 91eb97e37c

View File

@ -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(