mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Fixed GridField conditional
This commit is contained in:
parent
00d8188924
commit
0d69126152
@ -66,7 +66,9 @@ class GridFieldDetailForm implements GridField_URLHandler {
|
|||||||
$record = Object::create($gridField->getModelClass());
|
$record = Object::create($gridField->getModelClass());
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!$class = ClassInfo::exists(get_class($this) . "_ItemRequest")) {
|
if(ClassInfo::exists(get_class($this) . "_ItemRequest")) {
|
||||||
|
$class = get_class($this) . "_ItemRequest";
|
||||||
|
} else {
|
||||||
$class = 'GridFieldDetailForm_ItemRequest';
|
$class = 'GridFieldDetailForm_ItemRequest';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user