From 267d9a3f37ef5475fd8b051fade5c6823f69ff08 Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 30 Dec 2016 00:17:56 +0000 Subject: [PATCH] Update quantity field name --- modules/ORB/System/Recipe.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ORB/System/Recipe.pm b/modules/ORB/System/Recipe.pm index 41fc721..72129ea 100644 --- a/modules/ORB/System/Recipe.pm +++ b/modules/ORB/System/Recipe.pm @@ -557,7 +557,7 @@ sub _add_ingredients { or return $self -> self_error("Unable to get preparation method ID for '".$ingred -> {"prep"}."': ".$self -> {"entities"} -> {"prep"} -> errstr()); # If we have an ID we can add the ingredient. - $addh -> execute($recipeid, $position, $unitid, $prepid, $ingid, $ingred -> {"quant"}, $ingred -> {"notes"}, undef) + $addh -> execute($recipeid, $position, $unitid, $prepid, $ingid, $ingred -> {"quantity"}, $ingred -> {"notes"}, undef) or return $self -> self_error("Unable to add ingredient '".$ingred -> {"name"}."' to recipe '$recipeid': ".$self -> {"dbh"} -> errstr()); # And increase the entity refcounts