mirror of
https://github.com/grocy/grocy.git
synced 2026-03-27 23:29:25 +01: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…
Reference in New Issue
Block a user