Transpose product column index when searching in it (fixes #2688)

This commit is contained in:
Bernd Bestel
2025-02-27 17:07:30 +01:00
parent 27b79841fc
commit 72453eac0a
3 changed files with 3 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ $.fn.dataTable.ext.search.push(function(settings, data, dataIndex)
{
var productId = Grocy.Components.ProductPicker.GetValue();
if (!productId || Number.isNaN(productId) || productId == data[1])
if (!productId || Number.isNaN(productId) || productId == data[stockEntriesTable.colReorder.transpose(1)])
{
return true;
}