Skip to content
Browse files

fix(VersionedGridFieldDetailForm): fix undefined $controller

  • Loading branch information...
1 parent d313d51 commit 24acf426f11561cdf7f4294e97aad9bb903e620a @petebacondarwin petebacondarwin committed
Showing with 3 additions and 1 deletion.
  1. +3 −1 code/Forms/VersionedGridFieldDetailForm.php
View
4 code/Forms/VersionedGridFieldDetailForm.php
@@ -178,9 +178,11 @@ private function completeAction($form, $data, $message)
$form->sessionMessage($fullMessage, 'good');
+ $controller = Controller::curr();
+
if($this->gridField->getList()->byId($this->record->ID))
{
- return $this->edit(Controller::curr()->getRequest());
+ return $this->edit($controller->getRequest());
}
else
{

0 comments on commit 24acf42

Please sign in to comment.
Something went wrong with that request. Please try again.