mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-07-01 00:49:33 +02:00
Merge branch '4.3' into 4
This commit is contained in:
commit
2c971eea83
|
@ -72,6 +72,9 @@ class DBForeignKey extends DBInt
|
|||
if ($hasOneSingleton instanceof Image) {
|
||||
$field->setAllowedFileCategories('image/supported');
|
||||
}
|
||||
if ($field->hasMethod('setAllowedMaxFileNumber')) {
|
||||
$field->setAllowedMaxFileNumber(1);
|
||||
}
|
||||
return $field;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user