FIX: wrong class name being returned

This resulted in an error since the returned class name did not exist.
Note that this only happened when someone subclassed GridFieldDetailForm
and did not subclass GridFieldDetailForm_ItemRequest.
This commit is contained in:
Jeremy Thomerson 2013-07-09 20:58:24 +00:00
parent 3bfb82d25f
commit dbb2efcbb3

View File

@ -170,7 +170,7 @@ class GridFieldDetailForm implements GridField_URLHandler {
} else if(ClassInfo::exists(get_class($this) . "_ItemRequest")) {
return get_class($this) . "_ItemRequest";
} else {
return 'GridFieldItemRequest_ItemRequest';
return 'GridFieldDetailForm_ItemRequest';
}
}