changeset 1283:9d298c82575f

Check correct length in deskriptor string.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 18 Jan 2017 16:03:40 +0100
parents 20a2466820ce
children faecbb446a04
files app/controller/form/Probe.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/app/controller/form/Probe.js	Wed Jan 18 14:56:16 2017 +0100
+++ b/app/controller/form/Probe.js	Wed Jan 18 16:03:40 2017 +0100
@@ -230,7 +230,7 @@
         var desk = field.up('deskriptor');
         var media = field.up('probeform').down('textfield[name="mediaDesk"]');
         var current = media.getValue().split(' ');
-        if (current.length < 13) {
+        if (current.length < 12) {
             var value;
             for (var i = 0; i < 13; i++) {
                 if (i === 0) {

http://lada.wald.intevation.org