Merge pull request #7965 from andreaslindahl/DBMultiEnum

Fix for "too few parameters" error when using DBMultiEnum
This commit is contained in:
Daniel Hensby 2018-03-28 17:31:12 +01:00 committed by GitHub
commit 54b6c6f6e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@ use SilverStripe\Forms\CheckboxSetField;
*/ */
class DBMultiEnum extends DBEnum class DBMultiEnum extends DBEnum
{ {
public function __construct($name, $enum = null, $default = null) public function __construct($name = null, $enum = null, $default = null)
{ {
// MultiEnum needs to take care of its own defaults // MultiEnum needs to take care of its own defaults
parent::__construct($name, $enum, null); parent::__construct($name, $enum, null);