Ad Widget

Collapse

BUGFIX: 1.1.4: Connectors on maps still hilight while linked trigger is disabled

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Gerco
    Junior Member
    • Nov 2006
    • 22

    #1

    BUGFIX: 1.1.4: Connectors on maps still hilight while linked trigger is disabled

    When you have a connector set to change colour when a certain trigger is raised and you disable the trigger, the connector is still drawn in "on" state if the trigger was "ON" when you disabled it. This patch fixes that problem.

    Code:
    Index: frontends/php/map.php
    ===================================================================
    --- frontends/php/map.php	(revision 103)
    +++ frontends/php/map.php	(working copy)
    @@ -144,7 +144,7 @@
     		if(!is_null($link["triggerid"]))
     		{
     			$trigger=get_trigger_by_triggerid($link["triggerid"]);
    -			if($trigger["value"] == TRIGGER_VALUE_TRUE)
    +			if($trigger["status"] == TRIGGER_STATUS_ENABLED && $trigger["value"] == TRIGGER_VALUE_TRUE)
     			{
     				$drawtype = $link["drawtype_on"];
     				$color = $colors[$link["color_on"]];
    edit: re-pasted the patch. Should actually apply this time
    Last edited by Gerco; 04-01-2007, 15:03.
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Thanks for the patch. Applied!
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    Working...