unclecheese / silverstripe-gridfield-betterbuttons

Adds new form actions and buttons to the GridField detail form
GNU General Public License v2.0
80 stars 88 forks source link

Silverstripe 4 saveAndAdd not working properly #192

Open Kevinn1109 opened 5 years ago

Kevinn1109 commented 5 years ago

I have configured the config.yml of betterbuttons to include a SaveAndAdd button to the create action. However, this button does not work as it is expected.

When navigating to the /new page in the CMS, this button does not refresh the page. However, it does create a new row in the table. If I refresh the /new page, this button works as intended and redirects the user to a new blanco form.

Expected behaviour: the Save and New button should redirect the user to a new form with blanco fields when the page is accessed by navigating through the CMS, instead of requiring a page refresh before this behaviour works.