Merge branch '4.2' into 4.3

This commit is contained in:
Robbie Averill 2019-04-11 11:37:34 +12:00
commit f2f28586d9

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;
} }