Merge branch '4.0' into 4.1

This commit is contained in:
Robbie Averill 2019-04-11 11:36:40 +12:00
commit f4a6115ee6
2 changed files with 4 additions and 1 deletions

View File

@ -86,7 +86,7 @@ class GridFieldLevelup implements GridField_HTMLProvider
));
$template = SSViewer::get_templates_by_class($this, '', __CLASS__);
return array(
return array(
'before' => $forTemplate->renderWith($template),
);
}

View File

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