Added logic to GetChildren to skip Sections and Steps if there is only on part.

This commit is contained in:
Rich 2007-12-10 20:58:11 +00:00
parent 93cbb4ef20
commit 20bb33161d

View File

@ -454,6 +454,8 @@ namespace VEPROMS.CSLA.Library
public System.Collections.IList GetChildren()
{
_PartInfoList = this.MyContent.ContentParts;
if (_PartInfoList.Count == 1 && ( _PartInfoList[0].ToString() == "Sections" || _PartInfoList[0].ToString() == "Steps"))
return _PartInfoList[0].GetChildren();
return _PartInfoList;
}
//public bool ChildrenAreLoaded