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

Form get directly dirty state if API returns new data #7373

Open
alexander-schranz opened this issue Apr 19, 2024 · 0 comments
Open

Form get directly dirty state if API returns new data #7373

alexander-schranz opened this issue Apr 19, 2024 · 0 comments
Labels
Bug Error or unexpected behavior of already existing functionality

Comments

@alexander-schranz
Copy link
Member

alexander-schranz commented Apr 19, 2024

Q A
Sulu Version 2.5.14 / 2.4.19 / 2.6.0-RC1
Sulu Form Bundle 2.5.2
PHP Version -

Actual Behavior

Form get directly dirty if API returns new data.

Expected Behavior

The form should not get dirty

Steps to Reproduce

  1. Create a dynamic form via the SuluFormBundle
  2. Add a new field
  3. Click Save
  4. Save button get again dirty

The form bundle requires to generate a key and id and returns that think that hook into to trigger again dirty state.

This confuses the content manager as they think navigating away sulu shows "unsaved data" message.

@alexander-schranz alexander-schranz added the Bug Error or unexpected behavior of already existing functionality label Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Error or unexpected behavior of already existing functionality
Projects
None yet
Development

No branches or pull requests

1 participant