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.
edit: re-pasted the patch. Should actually apply this time
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"]];
Comment