mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 12:20:22 +00:00
Transpose product column index when searching in it (fixes #2688)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user