Always call indexRulesTriggers() when creating or overwriting (an existing) rule
@@ -543,8 +543,8 @@ int DeRestPluginPrivate::createRule(const ApiRequest &req, ApiResponse &rsp)
{
rules.push_back(rule);
queueCheckRuleBindings(rule);
- indexRulesTriggers();
}
+ indexRulesTriggers();
}
queSaveDb(DB_RULES, DB_SHORT_SAVE_DELAY);
