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

Merge branch 'fix/Selector.select_single_execption' into 'wrdp'

Merge of fix/Selector.select_single_execption 修复人员选择单选可能存在的bug to wrdp

See merge request o2oa/o2oa!1952
蔡祥熠 5 лет назад
Родитель
Сommit
665cf44d37
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      o2web/source/x_component_Selector/Person.js

+ 1 - 0
o2web/source/x_component_Selector/Person.js

@@ -1978,6 +1978,7 @@ MWF.xApplication.Selector.Person.Item = new Class({
     selectedSingle: function( checkValid ){
     selectedSingle: function( checkValid ){
         if (!this.isSelected){
         if (!this.isSelected){
             if (this.selector.currentItem) this.selector.currentItem.unSelectedSingle();
             if (this.selector.currentItem) this.selector.currentItem.unSelectedSingle();
+            this.selector.emptySelectedItems();
             this.getData(function(){
             this.getData(function(){
                 this.selector.currentItem = this;
                 this.selector.currentItem = this;
                 this.isSelected = true;
                 this.isSelected = true;