mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-03 12:47:17 -06:00
Some logging.
This commit is contained in:
parent
b2d4dcfbf1
commit
114d3812cc
@ -223,11 +223,14 @@ class TransactionJournal implements TransactionJournalInterface, CUD, CommonData
|
||||
/*
|
||||
* Store the budget.
|
||||
*/
|
||||
\Log::info('Before budget id.');
|
||||
if (isset($data['budget_id']) && intval($data['budget_id']) > 0) {
|
||||
/** @var \FireflyIII\Database\Budget $budgetRepository */
|
||||
$budgetRepository = \App::make('FireflyIII\Database\Budget');
|
||||
$budget = $budgetRepository->find(intval($data['budget_id']));
|
||||
\Log::info('Isset budget id!');
|
||||
if ($budget) {
|
||||
\Log::info('Sync!');
|
||||
$model->budgets()->sync([$budget->id]);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user