mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-17 07:08:19 +00:00
Improve code quality.
This commit is contained in:
@@ -326,6 +326,7 @@ class BillController extends Controller
|
||||
$return = 'true';
|
||||
}
|
||||
|
||||
$group = null;
|
||||
// find first rule group, or create one:
|
||||
$count = $this->ruleGroupRepos->count();
|
||||
if (0 === $count) {
|
||||
@@ -336,7 +337,7 @@ class BillController extends Controller
|
||||
$group = $this->ruleGroupRepos->store($data);
|
||||
}
|
||||
if ($count > 0) {
|
||||
$group = $this->ruleGroupRepos->getActiveGroups(auth()->user())->first();
|
||||
$group = $this->ruleGroupRepos->getActiveGroups($bill->user)->first();
|
||||
}
|
||||
|
||||
// redirect to page that will create a new rule.
|
||||
|
||||
Reference in New Issue
Block a user