mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 09:04:39 +00:00
Filter, always generate hash if label isn't provided. for https://github.com/opnsense/core/issues/3312
This commit is contained in:
parent
a66852b433
commit
4c0f9a797e
@ -242,8 +242,8 @@ class Plugin
|
||||
if ($defaults != null) {
|
||||
$conf = array_merge($defaults, $conf);
|
||||
}
|
||||
if (empty($conf['label']) && !empty($conf['#ref'])) {
|
||||
// generated rule, has an anchor but no label if it's trackable
|
||||
if (empty($conf['label'])) {
|
||||
// generated rule, has no label
|
||||
$rule_hash = Util::calcRuleHash($conf);
|
||||
$conf['label'] = $rule_hash;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user