提交 6f10931f 编写于 作者: 蔡祥熠

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

Merge of fix/Selector.select_single_item 修复人员选择待选项唯一默认选中可能出现的问题 to wrdp

See merge request o2oa/o2oa!1808
......@@ -1471,7 +1471,8 @@ MWF.xApplication.Selector.Person = new Class({
if( !category.subItems[0].isSelected )category.subItems[0].clickItem();
}
}else if(category.subCategorys.length === 1){
if( !category.subCategorys[0]._hasChild || !category.subCategorys[0]._hasChild() ){ //category.subCategorys[0].isItem &&
if( category.subItems && category.subItems.length > 0 ){
}else if( !category.subCategorys[0]._hasChild || !category.subCategorys[0]._hasChild() ){ //category.subCategorys[0].isItem &&
if( !category.subItems[0].isSelected )category.subItems[0].clickItem();
}else{
checkCategory( category.subCategorys[0] )
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册