Reset rule order on index. #3376

This commit is contained in:
James Cole
2020-05-19 11:18:58 +02:00
parent ef9714b7e0
commit 4ebb6de520
2 changed files with 10 additions and 3 deletions

View File

@@ -91,6 +91,7 @@ class IndexController extends Controller
$user = auth()->user();
$this->createDefaultRuleGroup();
$this->createDefaultRule();
$this->ruleGroupRepos->resetRuleGroupOrder();
$ruleGroups = $this->ruleGroupRepos->getRuleGroupsWithRules($user);
return view('rules.index', compact('ruleGroups'));