Skip to content

Commit

Permalink
MINOR Fixed GridField conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
chillu committed Mar 12, 2012
1 parent 00d8188 commit 0d69126
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion forms/gridfield/GridFieldDetailForm.php
Expand Up @@ -66,7 +66,9 @@ public function handleItem($gridField, $request) {
$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';
} }


Expand Down

0 comments on commit 0d69126

Please sign in to comment.