Permalink
Browse files

MINOR Fixed GridField conditional

  • Loading branch information...
1 parent 00d8188 commit 0d69126152714267654ba26d185c663db02e94ce @chillu chillu committed Mar 12, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 forms/gridfield/GridFieldDetailForm.php
@@ -66,7 +66,9 @@ public function handleItem($gridField, $request) {
$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';
}

0 comments on commit 0d69126

Please sign in to comment.