changeset 1117:16cc342f1a68

Reverse result columns only if they have the wrong order.
author Raimund Renkert <raimund.renkert@intevation.de>
date Mon, 23 May 2016 11:38:55 +0200
parents 92c0fa2f29b0
children ea5774447e49
files app/controller/Filter.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/app/controller/Filter.js	Thu May 19 14:56:43 2016 +0200
+++ b/app/controller/Filter.js	Mon May 23 11:38:55 2016 +0200
@@ -111,7 +111,7 @@
         contentPanel.removeAll(); //clear the panel: make space for new grids
 
         // Setup Columns
-        if (this.displayFields) {
+        if (this.displayFields && this.displayFields[0].index === 0) {
             this.displayFields.reverse();
         }
 

http://lada.wald.intevation.org