Pman.Gnumeric.js
[Pman.Core] / Pman.Dialog.CoreEnumMerge.js
index 322a07d..3e8d841 100644 (file)
@@ -129,9 +129,14 @@ Pman.Dialog.CoreEnumMerge = {
                   
                    var title = _this.data.title  || _this.data.etype;
                   _this.dialog.setTitle("Delete selected " + title + " and merge data with");
+                  
+          
+                  if(typeof(_this.data._ids) == "undefined"){
+                      this.load({ method: 'GET', params: { '_id' : _this.data.id }});  
+                      return;
+                  }
+                  _this.form.findField('_names').setValue(_this.data._names);
                   _this.form.findField('_ids').setValue(_this.data._ids);
-                  _this.data.findField('_names').setValue(_this.data.materialList);
-                   this.load({ method: 'GET', params: { '_id' : _this.data.id }});  
                   return;
               }