mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-16 05:39:54 +05:00
Update filter rule validation condition
This commit is contained in:
committed by
Dan Christian Bogos
parent
193ecb5ef6
commit
edb985f42d
@@ -284,7 +284,7 @@ func (fltr *FilterRule) IsValid() bool {
|
||||
return false
|
||||
}
|
||||
// Element must be specified only when the type is different from *never
|
||||
if fltr.Element == utils.EmptyString && fltr.Type != utils.MetaNever {
|
||||
if fltr.Element == utils.EmptyString {
|
||||
return fltr.Type == utils.MetaNever
|
||||
}
|
||||
if len(fltr.Values) == 0 && !utils.IsSliceMember([]string{utils.MetaExists, utils.MetaNotExists,
|
||||
|
||||
Reference in New Issue
Block a user