[fusion-commits] r1360 - sandbox/aboudreault/MapServer/php

svn_fusion at osgeo.org svn_fusion at osgeo.org
Mon Apr 7 11:30:46 EDT 2008


Author: aboudreault
Date: 2008-04-07 11:30:46 -0400 (Mon, 07 Apr 2008)
New Revision: 1360

Modified:
   sandbox/aboudreault/MapServer/php/Query.php
   sandbox/aboudreault/MapServer/php/Search.php
Log:
Fix the displayed labels in SelectionPanel on query/search. (aboudreault sandbox)

Modified: sandbox/aboudreault/MapServer/php/Query.php
===================================================================
--- sandbox/aboudreault/MapServer/php/Query.php	2008-04-03 15:19:26 UTC (rev 1359)
+++ sandbox/aboudreault/MapServer/php/Query.php	2008-04-07 15:30:46 UTC (rev 1360)
@@ -222,7 +222,7 @@
 
                 array_push($properties->$layerName->propertynames, $key);
                 //TODO : we should define away to give alias to field names
-                array_push($properties->$layerName->propertyvalues, $val);
+                array_push($properties->$layerName->propertyvalues, $key);
 
                 //TODO we do not know the types of the attributes in MS. Just output 0
                 //we shouls possibly use OGR to get the attributes

Modified: sandbox/aboudreault/MapServer/php/Search.php
===================================================================
--- sandbox/aboudreault/MapServer/php/Search.php	2008-04-03 15:19:26 UTC (rev 1359)
+++ sandbox/aboudreault/MapServer/php/Search.php	2008-04-07 15:30:46 UTC (rev 1360)
@@ -176,7 +176,7 @@
                 $key = $aQueryItems[$key];
 
             array_push($properties->$layerName->propertynames, $key);
-            array_push($properties->$layerName->propertyvalues, $val);
+            array_push($properties->$layerName->propertyvalues, $key);
 
             array_push($properties->$layerName->propertytypes, 0);
         }



More information about the fusion-commits mailing list