mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-05 21:53:08 -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.
|
* 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]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user