Răsfoiți Sursa

修复人员选择器搜索结果可能不准确的问题

unknown 5 ani în urmă
părinte
comite
9b5c5adbcd
1 a modificat fișierele cu 2 adăugiri și 3 ștergeri
  1. 2 3
      o2web/source/x_component_Selector/Identity.js

+ 2 - 3
o2web/source/x_component_Selector/Identity.js

@@ -1206,7 +1206,6 @@ MWF.xApplication.Selector.Identity.Include = new Class({
     },
 
     listByFilter : function( type, key, callback ){
-        debugger;
         var arr1 = this.listByFilterPerson(key) || [];
         this.listByFilterUnitAndGroup( type, key, function(arr2){
             this.listByFilterGroup( type, key, function(arr3){
@@ -1259,8 +1258,8 @@ MWF.xApplication.Selector.Identity.Include = new Class({
         //根据关键字获取组织和群组内的身份
         var keyString = typeOf( key )==="string" ? key.toLowerCase() : key.key.toLowerCase();
 
-        if ( (this.includeUnit && this.includeUnit.length) || (this.includeGroup && this.includeGroup.length) ){
-            key = this.getUnitFilterKey( key, this.includeUnit || [], this.includeGroup || [] );
+        if ( this.includeUnit && this.includeUnit.length ){
+            key = this.getUnitFilterKey( key, this.includeUnit, this.includeGroup );
 
             this.orgAction.listIdentityByKey(function(json){
                 if (callback) callback(json.data);