Mercurial > lada > lada-client
diff app/view/form/Messprogramm.js @ 1234:390dabbf27ed
Empty string for media descriptor is disallowed.
This follows server Rev 1ef08710aaeb.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Fri, 28 Oct 2016 21:23:31 +0200 |
parents | 3e6756b0fc97 |
children | d1f43f1e7e84 |
line wrap: on
line diff
--- a/app/view/form/Messprogramm.js Fri Oct 28 20:04:20 2016 +0200 +++ b/app/view/form/Messprogramm.js Fri Oct 28 21:23:31 2016 +0200 @@ -560,8 +560,11 @@ }, setMediaDesk: function(record) { - var media = record.get('mediaDesk').split(' '); - this.setMediaSN(0, media); + var media = record.get('mediaDesk'); + if (media) { + var mediaParts = media.split(' '); + this.setMediaSN(0, mediaParts); + } }, setMediaSN: function(ndx, media, beschreibung) {