Pman.Dialog.CoreEnumMerge.bjs
[Pman.Core] / Pman.Dialog.CoreEnumMerge.js
index 03ca598..b33a44d 100644 (file)
@@ -129,13 +129,17 @@ Pman.Dialog.CoreEnumMerge = {
                   
                    var title = _this.data.title  || _this.data.etype;
                   _this.dialog.setTitle("Delete selected " + title + " and merge data with");
-                  _this.form.findField('_ids').setValue(_this.data._ids);
                   
-                  if(!_this.data._ids){
+          
+                  if(_this.data._ids == ""){
+                      console.log("fuk");
                       this.load({ method: 'GET', params: { '_id' : _this.data.id }});  
+                      _this.form.findField('id').setValue(_this.data.id);
                       return;
                   }
+                  console.log("fuk2");
                   _this.form.findField('_names').setValue(_this.data._names);
+                  _this.form.findField('_ids').setValue(_this.data._ids);
                   return;
               }