This commit is contained in:
2010-12-02 15:21:29 +00:00
parent 926d99cfdc
commit 46a7416070
3 changed files with 20 additions and 17 deletions

View File

@@ -57,7 +57,7 @@ namespace VEPROMS.CSLA.Library
if (args.AncestorLookup || ParentLookup)
{
string retval;
SectionInfo sect = _Section.MySectionInfo;
SectionInfo sect = _Section != null ? _Section.MySectionInfo : _SectionInfo;
while (sect.ActiveParent.GetType() == typeof(SectionInfo))
{
retval = sect.SectionConfig.GetValue(args.Group, args.Item);
@@ -92,6 +92,7 @@ namespace VEPROMS.CSLA.Library
string xml = sectionInfo.MyContent.Config;
if (xml == string.Empty) xml = "<config/>";
_Xp = new XMLProperties(xml);
if (_SectionInfo.ActiveParent != null) _Xp.LookInAncestor += new XMLPropertiesEvent(Xp_LookInAncestorFolder);
}
public SectionConfig(string xml)
{