Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"Max and min" filter of Alert templates does not function properly
#2
Code for this piece of logic is pretty simple and seems to be ok, except for the "matches_value" logic that could be inverted (the checkbox to match the value).

if ($alert->{'type'} eq "max_min") {
                        if ($alert->{'matches_value'} == 1) {
                                return $status if ($data <= $alert->{'min_value'} &&
                                                  $data >= $alert->{'max_value'});
                        } else {
                                return $status if ($data >= $alert->{'min_value'} &&
                                            x                  $data <= $alert->{'max_value'});
                        }
                }

Can you send us a screenshot of alert template definition ?, this could help us to identify the problem with the inverted logic of the match checkbox.

Thx for reporting.
 Reply
Messages In This Thread


Users browsing this thread: 1 Guest(s)


(c) 2006-2018 Artica Soluciones Tecnológicas. Contents of this wiki are under Create Common Attribution v3 licence. | pandorafms.com | pandorafms.org

Theme © MyBB Themes