code/VersionedDataObjectDetailsForm.php
public function doSaveAndQuit($data, $form)
    {
        $this->save($data, $form);
        $controller = $this->getToplevelController();
        $controller->getResponse()->addHeader("X-Pjax", "Content");
        $controller->redirect($this->getBackLink());
    }
public function doSaveAndQuit($data, $form)
    {
        $this->save($data, $form);
        $controller = $this->getToplevelController();
        $controller->getResponse()->addHeader("X-Pjax", "Content");
        $controller->redirect($this->getBackLink());
    }
public function doSaveAndQuit ( $ data , $ form ) { $ this -> save ( $ data , $ form ) ; $ controller = $ this -> getToplevelController ( ) ; $ controller -> getResponse ( ) -> addHeader ( "X-Pjax" , "Content" ) ; $ controller -> redirect ( $ this -> getBackLink ( ) ) ; }
Override the doSaveAnQuit action from better buttons so that it uses the versioned way fo saving things.
@param $data
@param $form
Override the doSaveAnQuit action from better buttons so that it uses the versioned way fo saving things .