diff --git a/o2web/source/x_component_Selector/Person.js b/o2web/source/x_component_Selector/Person.js index ccb9b332aa19acb36a629e9eea572cfddbccbc55..69993cca3fe8d0e86003c75f56dd2b5062aa0b36 100644 --- a/o2web/source/x_component_Selector/Person.js +++ b/o2web/source/x_component_Selector/Person.js @@ -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] )