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.

This commit is contained in:
John Jenko 2015-01-15 21:28:58 +00:00
parent 2f26c7a5fb
commit 7284fd86f2

View File

@ -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