[Mapbender-commits] r6246 - trunk/mapbender/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Jun 8 09:37:06 EDT 2010


Author: kmq
Date: 2010-06-08 09:37:05 -0400 (Tue, 08 Jun 2010)
New Revision: 6246

Modified:
   trunk/mapbender/http/javascripts/mod_digitize_tab.php
Log:
fix for ticket #640

Modified: trunk/mapbender/http/javascripts/mod_digitize_tab.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_digitize_tab.php	2010-06-08 11:57:47 UTC (rev 6245)
+++ trunk/mapbender/http/javascripts/mod_digitize_tab.php	2010-06-08 13:37:05 UTC (rev 6246)
@@ -2812,7 +2812,7 @@
 				'wfs_conf_id' : wfsConf[d.get(m).wfs_conf]['wfs_conf_id']
 			}, 
 			function(json,status){
-				var result = eval('('+json+')');
+				var result = typeof(json) == 'object' ? json :  eval('('+json+')');
 				var success = result.success;
 				var fid = result.fid;
 				wfsSubWrite(m, type, status, success, fid, callback);



More information about the Mapbender_commits mailing list