[fusion-commits] r2946 - trunk/widgets/Query/classes

svn_fusion at osgeo.org svn_fusion at osgeo.org
Tue Jul 26 09:12:49 PDT 2016


Author: jng
Date: 2016-07-26 09:12:49 -0700 (Tue, 26 Jul 2016)
New Revision: 2946

Modified:
   trunk/widgets/Query/classes/query.php
Log:
#650: Double-quote FDO properties in query widget to ensure properties with spaces and parentheses will work.

Patch by Gordon Luckett. Reviewed by me

Modified: trunk/widgets/Query/classes/query.php
===================================================================
--- trunk/widgets/Query/classes/query.php	2016-05-04 17:55:39 UTC (rev 2945)
+++ trunk/widgets/Query/classes/query.php	2016-07-26 16:12:49 UTC (rev 2946)
@@ -258,7 +258,7 @@
         $propertyFilter = '';
         if ($this->args['USEPROPERTYFILTER'] == 'true')
         {
-            $propertyFilter = $this->args['PROPERTYNAME'];
+            $propertyFilter = '"' . $this->args['PROPERTYNAME'] . '"';
             if ($this->args['ISSTRING'] == 'true')
                 $propertyFilter .= sprintf($this->strExpressions[$this->args['OPERATOR']], $this->args['VALUE']);
             else



More information about the fusion-commits mailing list