Allow cooking time of 0 for recipes that are not cooked
This commit is contained in:
parent
6b08544066
commit
50b7e883f3
@ -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 })
|
||||||
@ -511,4 +511,4 @@ sub _validate_recipe {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user