Просмотр исходного кода

修复CMS new this.Dict 报错的问题

unknown 5 лет назад
Родитель
Сommit
db4ce20eb7
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      o2web/source/x_component_Selector/Identity.js

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

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