X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Pman.Dialog.CoreEnum.js;h=543c71c3075de31d18bc6de2bcca27432328c614;hb=a1c2ead89aabe83c2a8344b07c553b8e5a566150;hp=e9b073436327982ad79ab82d25f150403ac86e19;hpb=7588dbb6b57d003d9fa19ee34aab8661a79626f0;p=Pman.Core diff --git a/Pman.Dialog.CoreEnum.js b/Pman.Dialog.CoreEnum.js index e9b07343..543c71c3 100644 --- a/Pman.Dialog.CoreEnum.js +++ b/Pman.Dialog.CoreEnum.js @@ -59,6 +59,12 @@ Pman.Dialog.CoreEnum = { actioncomplete : function (_self, action) { if (action.type == 'setdata') { + + if(typeof(_this.data.etype == 'undefined') || !_this.data.etype.length){ + Roo.MessageBox.alert('Error', 'Missing etype'); + return; + } + if(_this.data.id){ _this.dialog.el.mask("Loading"); this.load({ method: 'GET', params: { '_id' : _this.data.id }});