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

Saving an advanced filter with an "Or" in it sometimes reorders the "Or" to the last element #168

Open
bdnettleton opened this issue Jul 13, 2022 · 0 comments

Comments

@bdnettleton
Copy link

bdnettleton commented Jul 13, 2022

Describe the bug
After creating or updating a filter with an "Or (mark an or between blocks)" sometimes the order of the blocks gets changed moving the "Or ..." to the bottom of the blocks. When this happens the filter does not work correctly.

The first attached image is of a filter being edited immediately before saving, and the second attached image is immediately after saving.

Repeated deletes and saves eventually seem to fix the problem.

Before Save:
Before Save

After Save:
After Save

Expected behavior
Saving a set of blocks shouldn't reorder the blocks.

Screenshots
See attached

Details (please complete the following information):

  • OS: Mac OS-X
  • Python version 3.8
  • Django version 3.2
  • django-advanced-filters version 2.0
  • Browser Safari
  • Version 15.5
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

2 participants