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

Merge branch 'fix/org_superior' into 'develop'

Merge of fix/org_superior to develop 修复设置个人汇报对象时出错的问题

See merge request o2oa/o2oa!327
胡起 5 лет назад
Родитель
Сommit
765fa3f221
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      o2web/source/x_component_Org/PersonExplorer.js

+ 1 - 1
o2web/source/x_component_Org/PersonExplorer.js

@@ -687,7 +687,7 @@ MWF.xApplication.Org.PersonExplorer.PersonContent.BaseInfor = new Class({
             MWF.xDesktop.requireApp("Selector", "package", function(){
             MWF.xDesktop.requireApp("Selector", "package", function(){
                 var options = {
                 var options = {
                     "type": "person",
                     "type": "person",
-                    "values": [this.data.superior],
+                    "values": (this.data.superior) ? [this.data.superior] : [],
                     "count": 1,
                     "count": 1,
                     "onComplete": function(items){
                     "onComplete": function(items){
                         this.data.superior = items[0].data.distinguishedName;
                         this.data.superior = items[0].data.distinguishedName;