[fusion-commits] r2193 - sandbox/jxlib-3.0/layers/MapServer/php

svn_fusion at osgeo.org svn_fusion at osgeo.org
Mon Jul 26 14:31:46 EDT 2010


Author: pdeschamps
Date: 2010-07-26 18:31:46 +0000 (Mon, 26 Jul 2010)
New Revision: 2193

Modified:
   sandbox/jxlib-3.0/layers/MapServer/php/GetAttributes.php
Log:
GetAttribute was clearing out the selection 'values' array added it back into the session

Modified: sandbox/jxlib-3.0/layers/MapServer/php/GetAttributes.php
===================================================================
--- sandbox/jxlib-3.0/layers/MapServer/php/GetAttributes.php	2010-07-14 02:31:53 UTC (rev 2192)
+++ sandbox/jxlib-3.0/layers/MapServer/php/GetAttributes.php	2010-07-26 18:31:46 UTC (rev 2193)
@@ -33,8 +33,8 @@
 include ("Common.php");
 include('../../../common/php/Utilities.php');
 
-header('Content-type: application/json');
-header('X-JSON: true');
+//header('Content-type: application/json');
+//header('X-JSON: true');
 
 /* the name of the layer in the map to query */
 if ($_REQUEST['layers'] != '') {
@@ -103,6 +103,12 @@
       
       $oLayer->close();
     }
+
+	if(isset($_SESSION['selection_array']->$layerName)){
+		if(isset($_SESSION['selection_array']->$layerName->values)){
+			$properties->$layerName->values = $_SESSION['selection_array']->$layerName->values;
+		}
+	}
 }
 
 /*save selection in the session*/



More information about the fusion-commits mailing list