FIX_NEW_RULE_ID
This commit is contained in:
parent
bcb0a4e20b
commit
884162319f
@ -608,7 +608,7 @@ class RuleImportController extends AdminController
|
||||
// 3. CREATE NEW RULE (only if not found)
|
||||
if (empty($post_data['rule_id']) && !$ruleFound) {
|
||||
|
||||
$newRuleId = 'rule_' . substr(md5(time()), 0, 13);
|
||||
$newRuleId = 'rule_' . substr(md5(json_encode($post_data['rule_data']) . time()), 0, 13) . '_' . $id . '_' . strtolower($monthFolder);
|
||||
$newRule = [
|
||||
'id' => $newRuleId,
|
||||
'name' => $post_data['rule_data']['name'],
|
||||
|
||||
Loading…
Reference in New Issue
Block a user