Bug 40565: Correctly fix the retrieval of 'id'

For other tables than those from Vue apps, table_node is the node and we
need to retrieve the object before accessing the attr function

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2025-09-25 12:26:41 +02:00 committed by Lucas Gass
parent 7bb704294b
commit 9af7d9dfd7
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 1 additions and 1 deletions

View File

@ -1040,7 +1040,7 @@ function _dt_add_filters(table_node, table_dt, filters_options = {}) {
if (
table_dt.settings()[0].ajax !== null &&
table_node.attr("id") !== "item_search"
$(table_node)?.attr("id") !== "item_search"
) {
optionValue = `^${this._id}$`;
}