Update JournalRepository.php

Fix #860
This commit is contained in:
James Cole
2017-09-20 08:35:20 +02:00
committed by GitHub
parent e442eb6ce2
commit ec73607974

View File

@@ -196,7 +196,7 @@ class JournalRepository implements JournalRepositoryInterface
$journal->save();
// store stuff:
$this->storeCategoryWithJournal($journal, $data['category']);
$this->storeCategoryWithJournal($journal, strval($data['category']));
$this->storeBudgetWithJournal($journal, $data['budget_id']);
// store two transactions:
@@ -271,7 +271,7 @@ class JournalRepository implements JournalRepositoryInterface
$journal->categories()->detach();
$journal->budgets()->detach();
$this->storeCategoryWithJournal($journal, $data['category']);
$this->storeCategoryWithJournal($journal, strval($data['category']));
$this->storeBudgetWithJournal($journal, $data['budget_id']);
// negative because source loses money.