mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 12:20:22 +00:00
Only reload "Disable stock fulfillment checking for this ingredient" by the products default when creating a recipe ingredient (fixes #910)
This commit is contained in:
@@ -77,7 +77,10 @@ Grocy.Components.ProductPicker.GetPicker().on('change', function(e)
|
||||
$("#display_amount").parent().find(".invalid-feedback").text(__t('The amount cannot be lower than %s', '1'));
|
||||
}
|
||||
|
||||
$("#not_check_stock_fulfillment").prop("checked", productDetails.product.not_check_stock_fulfillment_for_recipes == 1);
|
||||
if (Grocy.Mode == "create")
|
||||
{
|
||||
$("#not_check_stock_fulfillment").prop("checked", productDetails.product.not_check_stock_fulfillment_for_recipes == 1);
|
||||
}
|
||||
|
||||
if (!$("#only_check_single_unit_in_stock").prop("checked"))
|
||||
{
|
||||
|
Reference in New Issue
Block a user