mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 12:20:22 +00:00
Also copy treat_opened_as_out_of_stock when copying a product (#2501)
This commit is contained in:
@@ -454,6 +454,10 @@ if (Grocy.EditMode == "create" && GetUriParam("copy-of") != undefined)
|
||||
{
|
||||
$("#move_on_open").prop("checked", true);
|
||||
}
|
||||
if (BoolVal(sourceProduct.treat_opened_as_out_of_stock))
|
||||
{
|
||||
$("#treat_opened_as_out_of_stock").prop("checked", true);
|
||||
}
|
||||
|
||||
Grocy.FrontendHelpers.ValidateForm('product-form');
|
||||
},
|
||||
|
Reference in New Issue
Block a user