Skip to content

Commit

Permalink
Hotfix to fix #19
Browse files Browse the repository at this point in the history
  • Loading branch information
devbanana committed Oct 13, 2014
2 parents 671ae2a + 086a445 commit 5c8e58a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Devbanana/BudgetBundle/Entity/BudgetRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,10 @@ public function getNotBudgetedLastMonth(Budget $budget)
$lastMonth = clone $budget->getMonth();
$lastMonth->modify('-1 month');

$lastMonthBudget = $this->findOneByMonth($lastMonth);
$lastMonthBudget = $this->findOneBy(array(
'month' => $lastMonth,
'user' => $budget->getUser(),
));

if ($lastMonthBudget) {
return $this->getAvailableToBudget($lastMonthBudget);
Expand Down

0 comments on commit 5c8e58a

Please sign in to comment.