Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix(VersionedGridFieldDetailForm): fix undefined $controller

  • Loading branch information...
commit 24acf426f11561cdf7f4294e97aad9bb903e620a 1 parent d313d51
@petebacondarwin petebacondarwin authored
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
{
Please sign in to comment.
Something went wrong with that request. Please try again.