changeset 1151:356941a04ba0

Fixed Type error in netzbetreiber widget.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 02 Jun 2016 12:30:14 +0200
parents 645f888e34be
children 7b3ddb7e9641
files app/view/widget/Netzbetreiber.js
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;
         }

http://lada.wald.intevation.org