Skip to content

PRODUCT_DONOTSEARCH_ANYWHERE still searches ref #37562

@ohsnaplol

Description

@ohsnaplol

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

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugThis is a bug (something does not work as expected)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions