[Lada-commits] [PATCH 1 of 3] Fixed selecting item on undefined attribute
Wald Commits
scm-commit at wald.intevation.org
Tue May 24 10:41:20 CEST 2016
# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1464079183 -7200
# Node ID a4944b52176e83dd4e48fa634e4c7ac3a7fa55c3
# Parent 49189f7b4d2f9e6635dd07890a357b8ff4bbf717
Fixed selecting item on undefined attribute.
diff -r 49189f7b4d2f -r a4944b52176e app/controller/Filter.js
--- a/app/controller/Filter.js Mon May 23 17:07:50 2016 +0200
+++ b/app/controller/Filter.js Tue May 24 10:39:43 2016 +0200
@@ -111,7 +111,9 @@
contentPanel.removeAll(); //clear the panel: make space for new grids
// Setup Columns
- if (this.displayFields && this.displayFields[0].index === 0) {
+ if (this.displayFields &&
+ this.displayFields.length > 0 &&
+ this.displayFields[0].index === 0) {
this.displayFields.reverse();
}
More information about the Lada-commits
mailing list