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>
(cherry picked from commit 9af7d9dfd7)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Jonathan Druart 2025-09-25 12:26:41 +02:00 committed by Paul Derscheid
parent 01d94090c7
commit cfa17e1bc5
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
1 changed files with 1 additions and 1 deletions

View File

@ -1038,7 +1038,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}$`;
}