Fixed that default_consume_location_id wasn't copied on copying a product (fixes #2223)

This commit is contained in:
Bernd Bestel
2023-05-12 20:48:44 +02:00
parent 8bdb74a8e0
commit 48564b5286
2 changed files with 2 additions and 0 deletions

View File

@@ -430,6 +430,7 @@ if (Grocy.EditMode == "create" && GetUriParam("copy-of") != undefined)
$("#default_best_before_days_after_thawing").val(sourceProduct.default_best_before_days_after_thawing);
$("#quick_consume_amount").val(sourceProduct.quick_consume_amount);
$("#quick_open_amount").val(sourceProduct.quick_open_amount);
$("#default_consume_location_id").val(sourceProduct.default_consume_location_id);
Grocy.FrontendHelpers.ValidateForm('product-form');
},