[Mapbender-commits] r5757 - trunk/mapbender/lib

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Sun Mar 14 10:59:41 EDT 2010


Author: verenadiewald
Date: 2010-03-14 10:59:40 -0400 (Sun, 14 Mar 2010)
New Revision: 5757

Modified:
   trunk/mapbender/lib/resultGeometryListModel.js
Log:
check if featureProperty is false

Modified: trunk/mapbender/lib/resultGeometryListModel.js
===================================================================
--- trunk/mapbender/lib/resultGeometryListModel.js	2010-03-14 14:59:06 UTC (rev 5756)
+++ trunk/mapbender/lib/resultGeometryListModel.js	2010-03-14 14:59:40 UTC (rev 5757)
@@ -175,7 +175,14 @@
 		if (geomArray.count() <= index) {
 			return null;
 		}
-		return geomArray.get(index).e.getElementValueByName(pName);
+		if(geomArray.get(index).e.getElementValueByName(pName) === false) {
+			var featureProperty = "";
+		}
+		else {
+			var featureProperty = geomArray.get(index).e.getElementValueByName(pName);
+			
+		}
+		return featureProperty;
 	};
 	
 	/**



More information about the Mapbender_commits mailing list