Added logic to GetChildren to skip Sections and Steps if there is only on part.
This commit is contained in:
parent
93cbb4ef20
commit
20bb33161d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user