Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checkbox/ Radio group duplicating values on save/publish #1220

Open
cebravo94 opened this issue Jun 30, 2023 · 3 comments
Open

Checkbox/ Radio group duplicating values on save/publish #1220

cebravo94 opened this issue Jun 30, 2023 · 3 comments

Comments

@cebravo94
Copy link

Adding a new option to a checkbox or radio group and the Saving and Publishing at the same time duplicates the fields

Screenshot 2023-06-30 at 2 27 15 PM

This only affects the CMS as the view display the fields correctly.

@GuySartorelli
Copy link
Member

GuySartorelli commented Jun 30, 2023

When you say "Saving and Publishing at the same time" do you mean you click save and then immediately click publish? Or do you mean you skip clicking save - and instead only click publish?

This only affects the CMS as the view display the fields correctly.

This sounds like it's not actually duplicating the field, but is just showing it twice. When you refresh the page, does it still show two fields or just one?

Can you please also indicate which version of the module you're experiencing this with?

@cebravo94
Copy link
Author

cebravo94 commented Jun 30, 2023

Clicking Save and then immediately click Publish.

Refreshing the page displays the duplicated fields, there's also 2 rows in the EditableOptions db table.
Screenshot 2023-06-30 at 2 54 37 PM

version: "silverstripe/userforms": "^6"

@NightJar
Copy link
Contributor

@cebravo94 Do you mean two separate click events, one for each button?
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants