Fixed a Dummy Transition Bug

This commit is contained in:
Rich 2008-05-22 12:02:40 +00:00
parent 46bd77f7ed
commit f5aaaf2b77

View File

@ -746,7 +746,8 @@ namespace VEPROMS.CSLA.Library
{
// Walk up active parents until the parent is not an item
ItemInfo tmp = this;
while (tmp.ActiveParent.GetType() != typeof(DocVersionInfo)) tmp = (ItemInfo)tmp.ActiveParent;
while (tmp.ActiveParent != null && tmp.ActiveParent.GetType() != typeof(DocVersionInfo))
tmp = (ItemInfo)tmp.ActiveParent;
return tmp;
}
}