mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-06 22:21:42 +00:00
Expand all test models.
This commit is contained in:
@@ -274,7 +274,7 @@ class RuleRepository implements RuleRepositoryInterface
|
||||
|
||||
++$rule->order;
|
||||
$rule->save();
|
||||
$this->resetRulesInGroupOrder($rule->ruleGroup);
|
||||
$this->resetRuleOrder($rule->ruleGroup);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -311,7 +311,7 @@ class RuleRepository implements RuleRepositoryInterface
|
||||
|
||||
--$rule->order;
|
||||
$rule->save();
|
||||
$this->resetRulesInGroupOrder($rule->ruleGroup);
|
||||
$this->resetRuleOrder($rule->ruleGroup);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -365,7 +365,7 @@ class RuleRepository implements RuleRepositoryInterface
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function resetRulesInGroupOrder(RuleGroup $ruleGroup): bool
|
||||
public function resetRuleOrder(RuleGroup $ruleGroup): bool
|
||||
{
|
||||
$ruleGroup->rules()->withTrashed()->whereNotNull('deleted_at')->update(['order' => 0]);
|
||||
|
||||
|
||||
@@ -167,7 +167,7 @@ interface RuleRepositoryInterface
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function resetRulesInGroupOrder(RuleGroup $ruleGroup): bool;
|
||||
public function resetRuleOrder(RuleGroup $ruleGroup): bool;
|
||||
|
||||
/**
|
||||
* @param string $query
|
||||
|
||||
Reference in New Issue
Block a user