mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-01 11:47:14 -06:00
Possible fix for #1453
This commit is contained in:
parent
895ab9c5d8
commit
f2928e3d7d
@ -129,11 +129,17 @@ class RuleGroupController extends Controller
|
||||
{
|
||||
$subTitle = trans('firefly.edit_rule_group', ['title' => $ruleGroup->title]);
|
||||
|
||||
$preFilled = [
|
||||
'active' => $ruleGroup->active,
|
||||
];
|
||||
|
||||
|
||||
// put previous url in session if not redirect from store (not "return_to_edit").
|
||||
if (true !== session('rule-groups.edit.fromUpdate')) {
|
||||
$this->rememberPreviousUri('rule-groups.edit.uri');
|
||||
}
|
||||
session()->forget('rule-groups.edit.fromUpdate');
|
||||
session()->flash('preFilled', $preFilled);
|
||||
|
||||
return view('rules.rule-group.edit', compact('ruleGroup', 'subTitle'));
|
||||
}
|
||||
|
@ -30,6 +30,7 @@ use FireflyIII\Models\Rule;
|
||||
|
||||
/**
|
||||
* Class RuleGroup.
|
||||
* @property bool $active
|
||||
*/
|
||||
class RuleGroup extends Model
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user