unclecheese / silverstripe-gridfield-betterbuttons

Adds new form actions and buttons to the GridField detail form

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect redirection when a Versioned DataObject is published

shaunjc opened this issue · comments

if ($redirectURL) {
return $controller->redirect($redirectURL);
}

$redirectURL is actually a \SilverStripe\Forms\FormRequestHandler instance, so users are always forced to incorrectly redirect to /SilverStripe/Forms/FormRequestHandler whenever a Versioned DataObject is published. Additional checks to ensure $redirectURL is a string should be added, or these lines should be removed.

Any news on this? Will it be fixed?

The SS4 upgrade is very much in flux, and I'm looking to wrap it up this week. See the feature/ss4-upgrade branch.