Search not listing Approved folders, sorted results not opening procedures
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user