Bug
Although I have set PRODUCT_DONOTSEARCH_ANYWHERE to 1, (I also tried % based on looking at the code) the ajax combo box still shows results from the ref field, even though it is supposed to only search the label.
According to the documentation:
When Ajax search is enabled, search is done on criteria anywhere in label of product. By adding this option, search is done only on start of label. This is really faster when you have a huge number of products.
I presume this is the intended behavior?
Dolibarr Version
23.0.0
Environment PHP
8.2.30
Environment Database
12.2.2-MariaDB-ubu2404
Steps to reproduce the behavior and expected behavior
Add PRODUCT_DONOTSEARCH_ANYWHERE with value 1 in Other setup. The behavior will be different than without this value set up, but not in the way it is described in the documentation.
Attached files

Bug
Although I have set PRODUCT_DONOTSEARCH_ANYWHERE to 1, (I also tried % based on looking at the code) the ajax combo box still shows results from the ref field, even though it is supposed to only search the label.
According to the documentation:
I presume this is the intended behavior?
Dolibarr Version
23.0.0
Environment PHP
8.2.30
Environment Database
12.2.2-MariaDB-ubu2404
Steps to reproduce the behavior and expected behavior
Add PRODUCT_DONOTSEARCH_ANYWHERE with value 1 in Other setup. The behavior will be different than without this value set up, but not in the way it is described in the documentation.
Attached files