mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-28 09:51:21 -06:00
Fix for bug #171
This commit is contained in:
parent
10a2a4cf5b
commit
9b10984d81
@ -341,6 +341,7 @@ class RuleController extends Controller
|
||||
$data = [
|
||||
'rule_group_id' => $repository->getFirstRuleGroup()->id,
|
||||
'stop_processing' => 0,
|
||||
'user_id' => Auth::user()->id,
|
||||
'title' => trans('firefly.default_rule_name'),
|
||||
'description' => trans('firefly.default_rule_description'),
|
||||
'trigger' => 'store-journal',
|
||||
@ -373,7 +374,7 @@ class RuleController extends Controller
|
||||
|
||||
if ($repository->count() === 0) {
|
||||
$data = [
|
||||
'user' => Auth::user()->id,
|
||||
'user_id' => Auth::user()->id,
|
||||
'title' => trans('firefly.default_rule_group_name'),
|
||||
'description' => trans('firefly.default_rule_group_description'),
|
||||
];
|
||||
|
@ -170,7 +170,7 @@ class RuleGroupRepository implements RuleGroupRepositoryInterface
|
||||
|
||||
$newRuleGroup = new RuleGroup(
|
||||
[
|
||||
'user_id' => $data['user'],
|
||||
'user_id' => $data['user_id'],
|
||||
'title' => $data['title'],
|
||||
'description' => $data['description'],
|
||||
'order' => ($order + 1),
|
||||
|
Loading…
Reference in New Issue
Block a user