mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
This is a fix for #171
This commit is contained in:
parent
df918e8529
commit
c5e283a13e
@ -342,6 +342,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',
|
||||
@ -374,7 +375,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'),
|
||||
];
|
||||
|
@ -171,7 +171,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