Merge branch '4.1' into 4.2

This commit is contained in:
Robbie Averill 2019-04-11 11:37:22 +12:00
commit 116ea12783

View File

@ -65,6 +65,9 @@ class DBForeignKey extends DBInt
if ($hasOneSingleton instanceof Image) {
$field->setAllowedFileCategories('image/supported');
}
if ($field->hasMethod('setAllowedMaxFileNumber')) {
$field->setAllowedMaxFileNumber(1);
}
return $field;
}