MINOR Fixed GridField conditional

This commit is contained in:
Ingo Schommer 2012-03-12 09:58:34 +01:00
parent 00d8188924
commit 0d69126152

View File

@ -66,7 +66,9 @@ class GridFieldDetailForm implements GridField_URLHandler {
$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';
}