src/Extensions/GridFieldBetterButtonsItemRequest.php
public function doSaveAndNext($data, $form)
    {
        Controller::curr()->getResponse()->addHeader("X-Pjax", "Content");
        $link = $this->getEditLink($this->getNextRecordID());

        return $this->saveAndRedirect($data, $form, $link);
    }
public function doSaveAndNext($data, $form)
    {
        Controller::curr()->getResponse()->addHeader("X-Pjax", "Content");
        $link = $this->getEditLink($this->getNextRecordID());

        return $this->saveAndRedirect($data, $form, $link);
    }
Saves the record and goes to the next one
@param  arary $data The form data
@param  Form $form The Form object
@return HTTPResponse