Allow cooking time of 0 for recipes that are not cooked

This commit is contained in:
Chris 2024-07-13 13:02:31 +01:00
parent 6b08544066
commit 50b7e883f3

View File

@ -426,7 +426,7 @@ sub _validate_recipe {
($args -> {"cooksecs"}, $error) = $self -> validate_numeric("cooksecs", { required => 1, ($args -> {"cooksecs"}, $error) = $self -> validate_numeric("cooksecs", { required => 1,
default => 0, default => 0,
intonly => 1, intonly => 1,
min => 1, min => 0,
nicename => "{L_RECIPE_COOKTIME}" nicename => "{L_RECIPE_COOKTIME}"
}); });
$errors .= $self -> {"template"} -> load_template("error/error_item.tem", { "%(error)s" => $error }) $errors .= $self -> {"template"} -> load_template("error/error_item.tem", { "%(error)s" => $error })