Fix for bug #171

This commit is contained in:
James Cole 2016-02-05 13:16:12 +01:00
parent 10a2a4cf5b
commit 9b10984d81
2 changed files with 3 additions and 2 deletions

View File

@ -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'),
];

View File

@ -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),