Skip to content

Commit

Permalink
changes to all cats
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Salisbury committed Feb 16, 2017
1 parent f7002de commit 295b3a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/routes/category.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
foreach( $cats as $cat ) {

$q = new CategoryRankNutrientQuery;
$requestedCatRules = $q->filterByCategoryId($cat->getId())->find();
$requestedCatRules = $q->filterByCategoryId($cat->getId())->orderByRankId()->find();
foreach($requestedCatRules as $rule) {
$rules[] = [
$rules[$rule->getNutrient()->getName()][] = [
"nutrientName" => $rule->getNutrient()->getName(),
"nutrientId" => $rule->getNutrient()->getId(),
"operator" => $rule->getOperator(),
Expand Down

0 comments on commit 295b3a2

Please sign in to comment.