[mapguide-commits] r6782 - branches/2.4/MgDev/Web/src/mapviewerphp

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Mon Jun 18 06:12:26 PDT 2012


Author: jng
Date: 2012-06-18 06:12:25 -0700 (Mon, 18 Jun 2012)
New Revision: 6782

Modified:
   branches/2.4/MgDev/Web/src/mapviewerphp/getselectedfeatures.php
Log:
#1780: Fix display of string properties containing line breaks. This for the PHP viewer.

Modified: branches/2.4/MgDev/Web/src/mapviewerphp/getselectedfeatures.php
===================================================================
--- branches/2.4/MgDev/Web/src/mapviewerphp/getselectedfeatures.php	2012-06-18 13:11:32 UTC (rev 6781)
+++ branches/2.4/MgDev/Web/src/mapviewerphp/getselectedfeatures.php	2012-06-18 13:12:25 UTC (rev 6782)
@@ -391,6 +391,7 @@
         case MgPropertyType::String:
             $tStr = "String";
             $val = JsonEscape($fr->GetString($propName)); //String content is arbitrary
+            $val = trim(preg_replace('/\s+/',' ',$val));
             break;
         case MgPropertyType::Blob: //NOT PRESENTABLE IN PROPERTY GRID
             $tStr = "BLOB";



More information about the mapguide-commits mailing list