diff --git a/core/model/fieldtypes/MultiEnum.php b/core/model/fieldtypes/MultiEnum.php index 5f8b52407..e0895f86c 100755 --- a/core/model/fieldtypes/MultiEnum.php +++ b/core/model/fieldtypes/MultiEnum.php @@ -11,6 +11,13 @@ * @subpackage model */ class MultiEnum extends Enum { + function __construct($name, $enum = NULL, $default = NULL) { + parent::__construct($name, $enum, $default); + + // MultiEnums are allowed blank defaults + if(!$default) $this->default = $default; + } + function requireField(){ DB::requireField($this->tableName, $this->name, "set('" . implode("','", $this->enum) . "') character set utf8 collate utf8_general_ci default '{$this->default}'"); }