Merge branch '4.3' into 4

This commit is contained in:
Robbie Averill 2019-04-11 11:37:47 +12:00
commit 2c971eea83

View File

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