From 7284fd86f251949366dcfc8b44764b699f3c2cbb Mon Sep 17 00:00:00 2001 From: John Date: Thu, 15 Jan 2015 21:28:58 +0000 Subject: [PATCH] Fixed a bug for RO Usage Report where RO Usages were not found in Word attachment sections when RO values where selected to generate the report rather than a RO group. --- PROMS/DataLoader/PROMSFixes.Sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PROMS/DataLoader/PROMSFixes.Sql b/PROMS/DataLoader/PROMSFixes.Sql index 39a4814d..0cee2ac7 100644 --- a/PROMS/DataLoader/PROMSFixes.Sql +++ b/PROMS/DataLoader/PROMSFixes.Sql @@ -2192,7 +2192,7 @@ join vefn_SplitROSearch(@ROSearchString) RR on case when len(RU.ROID) = 12 then union select contentid, du.roid from DROusages DU join entries ee on DU.DOCID = EE.DOCID -join vefn_SplitROSearch(@ROSearchString) RR on DU.roid like RR.roid + '%') RRU on RRU.ContentID = I.ContentID +join vefn_SplitROSearch(@ROSearchString) RR on case when len(DU.ROID) = 12 then DU.ROID +'0000' else DU.ROID end like RR.roid + '%') RRU on RRU.ContentID = I.ContentID AND ((isnull(@StepTypeList,'') = '' and dbo.vefn_AllSections(C.Type)>=10000) or