Ignore recipe units when unit set to None
This commit is contained in:
parent
5328e21cca
commit
e39feddd60
@ -656,7 +656,8 @@ sub _add_ingredients {
|
||||
|
||||
my ($unitid, $prepid);
|
||||
|
||||
if($ingred -> {"units"}) {
|
||||
# Set the units, if appropriate (ignore the "None" unit)
|
||||
if($ingred -> {"units"} && $ingred -> {"units"} ne "None") {
|
||||
$unitid = $self -> {"entities"} -> {"units"} -> get_id($ingred -> {"units"})
|
||||
or return $self -> self_error("Unable to get unit ID for '".$ingred -> {"units"}."': ".$self -> {"entities"} -> {"units"} -> errstr());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user