Skip to content

Saved filter not added to dropdown if not applied #682

Description

@urs-beeli

Description

In the filter dialog I can save the current filter criteria by clicking on the "save" button. After entering a name and clicking "OK", a confirmation dialog tells me that the filter has been saved.

If I then click "Apply", the fitler is applied to my database and the saved filter is added to the dropdown in the toolbar.
However, if instead of "Apply" I close the filter dialog with "Cancel", the filter is not applied (expected behaviour) and the saved filter is not added to the dropdown in the toolbar (at least not until I restart openSAK or re-open the filter dialog and close it with "Apply", then it appears in the dropdown).

Steps to Reproduce

  1. start openSAK
  2. open filter dialog
  3. click on "Save"
  4. enter name "dummy"
  5. click on "OK"
  6. confirmation dialog is shown, close it
  7. close filter dialog by clicking on "cancel"
  8. open filter drop-down in menu bar
  9. the newly created filter is not shown in the dropdown
  10. re-open the filter dialog
  11. close filter dialog by clicking on "apply"
  12. open filter drop-down in menu bar
  13. now the previously saved filter appears in the drop-down

Expected Behavior

In step 7/8/9 I would have expected the saved filter to be shown

Environment

python --version = 3.14.6
openSAK Version=1.16.1 (English)
os=Windows 11 Pro 25H2 64-bit German

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions