mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
3bfb82d25f
commit
dbb2efcbb3
@ -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';
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user