Ver Fonte

修复授权多身份下拉框显示异常问题//include会去重

boomEgg há 5 anos atrás
pai
commit
dda05da866
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      o2web/source/x_component_Profile/Main.js

+ 2 - 2
o2web/source/x_component_Profile/Main.js

@@ -1090,8 +1090,8 @@ MWF.xApplication.Profile.emPowerPopupForm = new Class({
         var identityTextList = [];
         var identityTextList = [];
         var identityList =[];
         var identityList =[];
         this.userIdentityList.each(function(it){
         this.userIdentityList.each(function(it){
-            identityTextList.include(it.name+"("+it.unitName+")");
-            identityList.include((it.distinguishedName));
+            identityTextList.push(it.name+"("+it.unitName+")");
+            identityList.push((it.distinguishedName));
         });
         });
 
 
         //this.formTableContainer.setStyle("width","80%");
         //this.formTableContainer.setStyle("width","80%");