mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 09:39:57 +00:00
Fixed that default_consume_location_id
wasn't copied on copying a product (fixes #2223)
This commit is contained in:
parent
8bdb74a8e0
commit
48564b5286
@ -37,6 +37,7 @@
|
||||
- Fixed that sorting by the "Value" and "Min. stock amount" columns on the stock overview page didn't work
|
||||
- Fixed that the consumed amount was wrong, when consuming multiple substituted subproducts at once and when multiple/different conversion factors were involved
|
||||
- Fixed that for a product's average price, only currently in-stock items were considered, not already consumed ones
|
||||
- Fixed that when copying a product, the field "Default consume location" was not copied along
|
||||
|
||||
### Shopping list
|
||||
|
||||
|
@ -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');
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user