[mapguide-commits] r7709 - trunk/MgDev/Web/src/mapviewerphp

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Wed Jul 31 18:30:27 PDT 2013


Author: hubu
Date: 2013-07-31 18:30:27 -0700 (Wed, 31 Jul 2013)
New Revision: 7709

Modified:
   trunk/MgDev/Web/src/mapviewerphp/legend.php
Log:
Submit on behalf of Andy Zhang.
Fix ticket http://trac.osgeo.org/mapguide/ticket/2329  
It is because we always use $typeStyle->item(0) to get the rule. We should use $typeStyle->item($st) instead.


Modified: trunk/MgDev/Web/src/mapviewerphp/legend.php
===================================================================
--- trunk/MgDev/Web/src/mapviewerphp/legend.php	2013-07-31 14:31:37 UTC (rev 7708)
+++ trunk/MgDev/Web/src/mapviewerphp/legend.php	2013-08-01 01:30:27 UTC (rev 7709)
@@ -354,7 +354,7 @@
                     if($showInLegend->item(0)->nodeValue == "false")
                         continue;   // This typestyle does not need to be shown in the legend
 
-                $rules = $typeStyle->item(0)->getElementsByTagName($ruleNames[$ts]);
+                $rules = $typeStyle->item($st)->getElementsByTagName($ruleNames[$ts]);
                 for($r = 0; $r < $rules->length; $r++)
                 {
                     $rule = $rules->item($r);



More information about the mapguide-commits mailing list