FIX_NEW_RULE_ID

This commit is contained in:
VENKATESHWARAN 2025-11-20 11:14:05 +05:30
parent bcb0a4e20b
commit 884162319f

View File

@ -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'],