diff app/controller/Sql.js @ 413:e1af66012ef0 0.6

Reverse displayFields Array before configuring the columns of the result list. Now the displayed columns are in the same order as defined in the query configuration file.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Mon, 23 Sep 2013 14:26:09 +0200
parents e3e4adb00f32
children 957a4a9fd260 f9bb1ecf6462
line wrap: on
line diff
--- a/app/controller/Sql.js	Thu Sep 19 15:56:23 2013 +0200
+++ b/app/controller/Sql.js	Mon Sep 23 14:26:09 2013 +0200
@@ -66,6 +66,7 @@
         sqldesc.setValue(record[0].data.description);
 
         // Setup Columns of the probenlist
+        displayFields.reverse();
         result.setupColumns(displayFields);
 
         // Setup Filters of the probenlist

http://lada.wald.intevation.org