Mercurial > lada > lada-client
comparison 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 |
comparison
equal
deleted
inserted
replaced
1233:a1bbfddb77b9 | 1234:390dabbf27ed |
---|---|
558 this.down('messstellelabor').setValue(items.getAt(0)); | 558 this.down('messstellelabor').setValue(items.getAt(0)); |
559 } | 559 } |
560 }, | 560 }, |
561 | 561 |
562 setMediaDesk: function(record) { | 562 setMediaDesk: function(record) { |
563 var media = record.get('mediaDesk').split(' '); | 563 var media = record.get('mediaDesk'); |
564 this.setMediaSN(0, media); | 564 if (media) { |
565 var mediaParts = media.split(' '); | |
566 this.setMediaSN(0, mediaParts); | |
567 } | |
565 }, | 568 }, |
566 | 569 |
567 setMediaSN: function(ndx, media, beschreibung) { | 570 setMediaSN: function(ndx, media, beschreibung) { |
568 var mediabeschreibung = this.getForm().findField('media'); | 571 var mediabeschreibung = this.getForm().findField('media'); |
569 | 572 |