mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #7965 from andreaslindahl/DBMultiEnum
Fix for "too few parameters" error when using DBMultiEnum
This commit is contained in:
commit
54b6c6f6e8
@ -11,7 +11,7 @@ use SilverStripe\Forms\CheckboxSetField;
|
||||
*/
|
||||
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
|
||||
parent::__construct($name, $enum, null);
|
||||
|
Loading…
Reference in New Issue
Block a user