Some logging.

This commit is contained in:
James Cole 2014-11-19 21:22:21 +01:00
parent b2d4dcfbf1
commit 114d3812cc

View File

@ -223,11 +223,14 @@ class TransactionJournal implements TransactionJournalInterface, CUD, CommonData
/* /*
* Store the budget. * Store the budget.
*/ */
\Log::info('Before budget id.');
if (isset($data['budget_id']) && intval($data['budget_id']) > 0) { if (isset($data['budget_id']) && intval($data['budget_id']) > 0) {
/** @var \FireflyIII\Database\Budget $budgetRepository */ /** @var \FireflyIII\Database\Budget $budgetRepository */
$budgetRepository = \App::make('FireflyIII\Database\Budget'); $budgetRepository = \App::make('FireflyIII\Database\Budget');
$budget = $budgetRepository->find(intval($data['budget_id'])); $budget = $budgetRepository->find(intval($data['budget_id']));
\Log::info('Isset budget id!');
if ($budget) { if ($budget) {
\Log::info('Sync!');
$model->budgets()->sync([$budget->id]); $model->budgets()->sync([$budget->id]);
} }
} }