Fix #7123 - getting abra ready to test
[Pman.Xtuple] / Pman.Dialog.XtupleVendTypeEdit.js
index 6919d0a..b69cb00 100644 (file)
@@ -50,13 +50,14 @@ Pman.Dialog.XtupleVendTypeEdit = {
                                 actioncomplete : function(_self,action)
                                 {
                                     if (action.type == 'setdata') {
-                                        if(_this.data.id){
+                                        if(_this.data.vendtype_id){
                                             _this.dialog.el.mask("Loading");
-                                            this.load({ method: 'GET', params: { '_id' : _this.data.id }});
+                                            this.load({ method: 'GET', params: { '_id' : _this.data.vendtype_id }});
                                         }
                                        return;
                                     }
                                     if (action.type == 'load') {
+                                        _this.data = action.result.data;
                                         _this.dialog.el.unmask();
                                         return;
                                     }