B2021-086 Fixed the bug where a superseded watermark was placed on top of a workflow watermark when an approval (with a different revision number) was done.
This commit is contained in:
parent
84c8442c66
commit
00bc9cea50
@ -1324,7 +1324,8 @@ namespace Volian.Controls.Library
|
||||
RevisionInfo ri = mi.Tag as RevisionInfo;
|
||||
{
|
||||
MenuItem mip = mi.Parent as MenuItem;
|
||||
if (ri.RevisionID < int.Parse(mip.Parent.Tag.ToString()))
|
||||
//B2021-086 Added the check for the last revision stage is an Approved stage
|
||||
if ((ri.RevisionID < int.Parse(mip.Parent.Tag.ToString())) && ri.LatestVersion.MyStage.IsApproved!=0)
|
||||
superceded = true;
|
||||
}
|
||||
vlnTreeViewPdfArgs args = new vlnTreeViewPdfArgs(Volian.Base.Library.TmpFile.CreateFileName(ProcedureInfo.Get(ri.ItemID).PDFNumber), ri.LatestVersion.PDF, superceded ? "Superceded" : "");
|
||||
@ -1339,7 +1340,8 @@ namespace Volian.Controls.Library
|
||||
RevisionInfo ri = mi.Tag as RevisionInfo;
|
||||
{
|
||||
MenuItem mip = mi.Parent as MenuItem;
|
||||
if (ri.RevisionID < int.Parse(mip.Parent.Tag.ToString()))
|
||||
//B2021-086 Added the check for the last revision stage is an Approved stage
|
||||
if ((ri.RevisionID < int.Parse(mip.Parent.Tag.ToString())) && ri.LatestVersion.MyStage.IsApproved != 0)
|
||||
superceded = true;
|
||||
}
|
||||
ItemInfo ii = ItemInfo.Get(ri.ItemID);
|
||||
|
Loading…
x
Reference in New Issue
Block a user