Pman.Dialog.CoreEnum.bjs
[Pman.Core] / Pman.Dialog.CoreEnum.js
index 3725579..f78f26b 100644 (file)
@@ -59,6 +59,13 @@ Pman.Dialog.CoreEnum = {
                                 actioncomplete : function (_self, action)
                                 {
                                   if (action.type == 'setdata') {
+                                        Roo.log(_this.data);
+                                        if(typeof(_this.data.etype == 'undefined') || !_this.data.etype.length){
+                                            Roo.MessageBox.alert('Error', 'Missing etype');
+                                            _this.dialog.hide();
+                                            return;
+                                        }
+                                  
                                         if(_this.data.id){
                                             _this.dialog.el.mask("Loading");
                                             this.load({ method: 'GET', params: { '_id' : _this.data.id }}); 
@@ -108,7 +115,19 @@ Pman.Dialog.CoreEnum = {
                                 {
                                     xtype: 'Hidden',
                                     xns: Roo.form,
-                                    name : 'id'
+                                    name : 'etype'
+                                },
+                                {
+                                    xtype: 'Hidden',
+                                    xns: Roo.form,
+                                    name : 'active',
+                                    value : 1
+                                },
+                                {
+                                    xtype: 'Hidden',
+                                    xns: Roo.form,
+                                    name : 'seqid',
+                                    value : 0
                                 },
                                 {
                                     xtype: 'Hidden',