[Lada-commits] [PATCH 3 of 3] Reverse displayFields Array before configuring the columns of the result list
Wald Commits
scm-commit at wald.intevation.org
Mon Sep 23 14:27:44 CEST 2013
# HG changeset patch
# User Torsten Irländer <torsten.irlaender at intevation.de>
# Date 1379939169 -7200
# Node ID e1af66012ef058f9fe44699fa3aa6fe54e560829
# Parent cf4b6e93f9568c0c191b3b1849c0873285fc1297
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.
diff -r cf4b6e93f956 -r e1af66012ef0 app/controller/Sql.js
--- 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
More information about the Lada-commits
mailing list