-
Notifications
You must be signed in to change notification settings - Fork 280
Open
Description
What version of Unfold are you using?
main
What version of Django are you using?
5.2.2
What browser are you using?
All
Did you checked changelog/commit history, if the bug is not already fixed?
No
Did you searched other issues, if the bug is not already fixed?
Yes
Did you checked documentation?
Yes
Are you able to replicate the bug in the demo site?
Yes
Repository with reproduced bug
N/A
Describe your issue
Steps to reproduce:
- Go on live demo on this page: https://demo.unfoldadmin.com/en/admin/formula/driver/56/change/
- Status: Active
- Fill the
Conditional field active
with "Fake active data" - Change status to Inactive
- Fill the
Conditional field inactive
with "Fake inactive data" - Submit
Current behavior:
The Conditional field active
is also sent with the payload
...
------geckoformboundary5bdd477ff4cc9b7773a4f4a54b98733c
Content-Disposition: form-data; name="status"
ACTIVE
------geckoformboundary5bdd477ff4cc9b7773a4f4a54b98733c
Content-Disposition: form-data; name="conditional_field_active"
Fake active data
------geckoformboundary5bdd477ff4cc9b7773a4f4a54b98733c
Content-Disposition: form-data; name="conditional_field_inactive"
Fake inactive data
...
Expected behavior:
We would expect Unfold to clear / empty (default?) the hidden fields before submitting
...
------geckoformboundary5bdd477ff4cc9b7773a4f4a54b98733c
Content-Disposition: form-data; name="status"
ACTIVE
------geckoformboundary5bdd477ff4cc9b7773a4f4a54b98733c
Content-Disposition: form-data; name="conditional_field_inactive"
Fake inactive data
...
Metadata
Metadata
Assignees
Labels
No labels