web icon indicating copy to clipboard operation
web copied to clipboard

[16.0] web_advanced_search: improper domain when only changing field

Open pafnow opened this issue 2 years ago • 1 comments

When changing the field used for filtering, the domain doesn't update automatically resulting in filtering on value = "1" instead of value = "" for char field (for example)

Module

web_advanced_search

Describe the bug

When changing only the field to filter on, the resulting domain is not always correct. For example, for a char field, the domain is [["name","=",1]] instead of [["name","=",""]]

To Reproduce

Affected versions: 16.0

Steps to reproduce the behavior:

  1. Open the advanced search popup, default filter is defined on ID = 1 image
  2. Only change the field you want to filter on, by selecting a char field for example image
  3. The form shows Name = "" (empty string) but the domain is different.
  4. Validate the popup and see that the filter applied is following the domain and not what the form displayed image

Expected behavior Domain should update on the fly when field is changed

In above case, the popup should show image

and the validation should result in this filter being applied image

Additional context Windows 11, Python 3.8, Chrome

pafnow avatar May 03 '23 12:05 pafnow

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.

github-actions[bot] avatar Oct 19 '25 12:10 github-actions[bot]