mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge branch '4.0' into 4.1
This commit is contained in:
commit
f4a6115ee6
@ -86,7 +86,7 @@ class GridFieldLevelup implements GridField_HTMLProvider
|
|||||||
));
|
));
|
||||||
|
|
||||||
$template = SSViewer::get_templates_by_class($this, '', __CLASS__);
|
$template = SSViewer::get_templates_by_class($this, '', __CLASS__);
|
||||||
return array(
|
return array(
|
||||||
'before' => $forTemplate->renderWith($template),
|
'before' => $forTemplate->renderWith($template),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -55,6 +55,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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user