Search not listing Approved folders, sorted results not opening procedures

This commit is contained in:
2009-12-18 14:32:10 +00:00
parent b3c742d586
commit 2cd2c471a8
2 changed files with 89 additions and 5 deletions

View File

@@ -283,8 +283,8 @@ namespace Volian.Controls.Library
{
foreach (DocVersionInfo dv in fi.FolderDocVersions)
{
if ((VersionTypeEnum)dv.VersionType == VersionTypeEnum.WorkingDraft)
{
//if ((VersionTypeEnum)dv.VersionType == VersionTypeEnum.WorkingDraft)
//{
DevComponents.AdvTree.Node newnode = new DevComponents.AdvTree.Node();
newnode.Text = dv.ToString();
newnode.Tag = dv;
@@ -294,7 +294,7 @@ namespace Volian.Controls.Library
newnode.CheckBoxThreeState = false;
newnode.CheckBoxVisible = true;
par.Nodes.Add(newnode);
}
//}
}
}
}
@@ -603,10 +603,12 @@ namespace Volian.Controls.Library
private void lbSrchResults_SelectedValueChanged(object sender, EventArgs e)
{
if (_LoadingList) return;
ItemInfoList iil = lbSrchResults.DataSource as ItemInfoList;
if (!_LoadingList && iil != null && !iil.RefreshingList)
// iil will be null for a sorted list, so only check RefreshingList for ItemInfoList
if(iil == null || !iil.RefreshingList)
{
_ItemInfo = lbSrchResults.SelectedValue as ItemInfo;
_ItemInfo = lbSrchResults.SelectedValue as ItemInfo;
if ((tabSearchTypes.SelectedTab == tabSearchTypes.Tabs[1]) && (_ItemInfo != null))
{
_AnnotationDetails.CurrentAnnotation = AnnotationInfo.Get(_ItemInfo.SearchAnnotationID);