Skip to content

Commit

Permalink
Merge pull request #14 from dmd-web-and-mobile/hf/decision
Browse files Browse the repository at this point in the history
decision now adds food namee on insert
  • Loading branch information
jrs06005 committed Mar 3, 2017
2 parents e8caeed + 72c265a commit be403cc
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 be403cc

Please sign in to comment.