mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 19:35:10 +01:00
Added rule validation
This commit is contained in:
@@ -1051,6 +1051,7 @@ public class FragmentRule extends FragmentBase {
|
||||
rule.stop = stop;
|
||||
rule.condition = condition;
|
||||
rule.action = action;
|
||||
rule.validate(context);
|
||||
rule.id = db.rule().insertRule(rule);
|
||||
} else {
|
||||
EntityRule rule = db.rule().getRule(id);
|
||||
@@ -1061,6 +1062,7 @@ public class FragmentRule extends FragmentBase {
|
||||
rule.stop = stop;
|
||||
rule.condition = condition;
|
||||
rule.action = action;
|
||||
rule.validate((context));
|
||||
db.rule().updateRule(rule);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user