[Lada-commits] [PATCH 1 of 3] Fixed Type error in netzbetreiber widget
Wald Commits
scm-commit at wald.intevation.org
Thu Jun 2 17:33:05 CEST 2016
# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1464863414 -7200
# Node ID 356941a04ba06c95590e1e5c138ade4076d5c8e2
# Parent 645f888e34be6ff80ab114d06857b00636b8adb0
Fixed Type error in netzbetreiber widget.
diff -r 645f888e34be -r 356941a04ba0 app/view/widget/Netzbetreiber.js
--- a/app/view/widget/Netzbetreiber.js Fri May 27 14:52:56 2016 +0200
+++ b/app/view/widget/Netzbetreiber.js Thu Jun 02 12:30:14 2016 +0200
@@ -39,6 +39,9 @@
getValue: function() {
var value = this.down('combobox').getValue();
+ if (value === undefined || value === null || value === '') {
+ return [];
+ }
if (value instanceof Array) {
return value;
}
More information about the Lada-commits
mailing list