[Lada-commits] [PATCH 1 of 2] Reverse result columns only if they have the wrong order

Wald Commits scm-commit at wald.intevation.org
Mon May 23 11:39:24 CEST 2016


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1463996335 -7200
# Node ID 16cc342f1a68de1fe44c863c8fcb4d311dc49362
# Parent  92c0fa2f29b0b52baa6b93937d7367628c04b534
Reverse result columns only if they have the wrong order.

diff -r 92c0fa2f29b0 -r 16cc342f1a68 app/controller/Filter.js
--- 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();
         }
 


More information about the Lada-commits mailing list