diff --git a/server/AyaNova/biz/ReportBiz.cs b/server/AyaNova/biz/ReportBiz.cs index c80babbb..1e4d7116 100644 --- a/server/AyaNova/biz/ReportBiz.cs +++ b/server/AyaNova/biz/ReportBiz.cs @@ -382,6 +382,12 @@ namespace AyaNova.Biz return null; } + //If we get here via the /viewreport url in the client then there is no object type set so we need to set it here from the report + if(reportRequest.ObjectType==AyaType.NoType){ + reportRequest.ObjectType=report.ObjectType; + } + + AuthorizationRoles effectiveRoles = CurrentUserRoles;