Skip to content

Commit

Permalink
decision now adds food namee on insert
Browse files Browse the repository at this point in the history
  • Loading branch information
jsalisbury committed Mar 3, 2017
1 parent 31d7ca0 commit 72c265a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/routes/decision.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ function getProductInfo($upc) {
$newFood->setRankId($newFoodRank);
$newFood->setCategoryId($newFoodCat);
$newFood->setBarcode($barcode);
$newFood->setName($res["food"]['brand']." " .$res["food"]['name']);


if($newFood->save()){
Expand Down

0 comments on commit 72c265a

Please sign in to comment.