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

Filter on Product list - Don't work if unit column is active #32911

Open
Antoine-514 opened this issue Feb 2, 2025 · 1 comment
Open

Filter on Product list - Don't work if unit column is active #32911

Antoine-514 opened this issue Feb 2, 2025 · 1 comment
Assignees
Labels
Bug This is a bug (something does not work as expected)

Comments

@Antoine-514
Copy link

Bug

Hello,

If the key PRODUCT_USE_UNITS is active (value 1), and this column is added on the product screen list.
The filters (all column except unit) on product screen didn't work.

On the first opening, the list is displayed.
But if you add a criteria : the list become empty.

Dolibarr Version

20.0.3

Environment PHP

8.3.15

Environment Database

MySQL or MariaDB 10.6.20-MariaDB-cll-lve

Steps to reproduce the behavior and expected behavior

Active the unit for product
PRODUCT_USE_UNITS = 1

Add column unit on product screen

Add (of course) some unit on products.

Try to make a filter on every column (except unit), the return is an empty list.

I notice the first value of the unit list is "blank"/"empty".
And I think the system use this value as filter.
Not on the first opening but on the first filter criteria.

As example, do the same test with the column "nature of product". (And remove "unit" column)
The first value of the list is also "blank"/"empty", but it doesn't break the filter.

Tested on Chrome and Safari, on MacOS

Attached files

No response

@Antoine-514 Antoine-514 added the Bug This is a bug (something does not work as expected) label Feb 2, 2025
@hregis
Copy link
Contributor

hregis commented Feb 4, 2025

@Antoine-514 it's fixed, thanks : #32933

@hregis hregis self-assigned this Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is a bug (something does not work as expected)
Projects
None yet
Development

No branches or pull requests

2 participants