mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 17:05:39 +02:00
Sort the automatically generated list of classes.
This commit is contained in:
parent
6247d4f4ec
commit
f1eadd549b
@ -77,6 +77,7 @@ class GridFieldAddNewMultiClass implements GridField_HTMLProvider, GridField_URL
|
|||||||
|
|
||||||
if(is_null($this->classes)) {
|
if(is_null($this->classes)) {
|
||||||
$classes = array_values(ClassInfo::subclassesFor($grid->getModelClass()));
|
$classes = array_values(ClassInfo::subclassesFor($grid->getModelClass()));
|
||||||
|
sort($classes);
|
||||||
} else {
|
} else {
|
||||||
$classes = $this->classes;
|
$classes = $this->classes;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user