yes, I guess this was always the way how it worked aslo in older 
versions. It's not just for Postgis but also shapefile layers etc.

The change to make it behave as you expected is to modify the 
lib/query/query.php file at line 229 replacing the 4 subsequent lines 
with the following ones:
     foreach ($resultFields as $fld) {
         if (array_key_exists($fld, $recIn)) {
             $rec[$fld] = $recIn[$fld];
         }
     }

Maybe a bit of testing would be needed but it could be changed in the 
main code to always work like that, I agree that it seems more logic...

armin


On 10/13/2014 01:47 PM, Raffaele Morelli wrote:
> Hi,
>
> there's an issue with PM_RESULT_FIELDS and the specified order of fields.
>
> No matter what is specified in PM_RESULT_FIELDS, fields order follows postgis
> table fields order.
>
> Can you confirm this behaviour?
>

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to