Fixed the "Add as barcode to existing product" productpicker workflow from the /shoppinglistitem page (fixes #1262)

This commit is contained in:
Bernd Bestel
2021-07-04 15:46:19 +02:00
parent 4086a63ebd
commit 734e174442
3 changed files with 23 additions and 1 deletions

View File

@@ -220,7 +220,7 @@ $('#product_id_text_input').on('blur', function(e)
callback: function()
{
Grocy.Components.ProductPicker.PopupOpen = false;
window.location.href = U(Grocy.CurrentUrlRelative + '?flow=InplaceAddBarcodeToExistingProduct&barcode=' + encodeURIComponent(input));
window.location.href = U(Grocy.CurrentUrlRelative + '?flow=InplaceAddBarcodeToExistingProduct&barcode=' + encodeURIComponent(input) + "&" + embedded);
}
},
addnewproductwithbarcode: {