mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 09:39:57 +00:00
Make new barcode added via productpicker InplaceAddBarcodeToExistingProduct flow immediately searchable (closes #839)
This commit is contained in:
parent
35ed7299af
commit
34859ada02
@ -51,6 +51,11 @@ Grocy.Components.ProductPicker.InAnyFlow = function()
|
||||
|
||||
Grocy.Components.ProductPicker.FinishFlow = function()
|
||||
{
|
||||
if (GetUriParam("flow") == "InplaceAddBarcodeToExistingProduct")
|
||||
{
|
||||
$("#product_id option[value=\"" + Grocy.Components.ProductPicker.GetValue() + "\"]").attr("data-additional-searchdata", (i, value) => `${value || ""}${GetUriParam("barcode")},`);
|
||||
}
|
||||
|
||||
RemoveUriParam("flow");
|
||||
RemoveUriParam("barcode");
|
||||
RemoveUriParam("product-name");
|
||||
|
Loading…
x
Reference in New Issue
Block a user