-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix duplicate report content #2259
Conversation
</Row> | ||
</Show> | ||
<Row> | ||
<FormikCheckbox |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Always show to reduce issue where the data source changes and it becomes hidden.
@@ -829,8 +828,14 @@ public IEnumerable<ReportInstance> GetLatestInstances(int id, int? ownerId = nul | |||
if (sectionSettings.RemoveDuplicates) | |||
query = query.Where(fc => !excludeAboveSectionContentIds.Contains(fc.ContentId)); | |||
|
|||
if (excludeContentIds.Any() && !sectionSettings.OverrideExcludeHistorical) | |||
query = query.Where(fc => !excludeContentIds.Contains(fc.ContentId)); | |||
if (!sectionSettings.OverrideExcludeHistorical) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed logic for excluding content from a linked report.
Fixed logic for excluding content from above sections.
var excludeAboveAndHistorical = sectionSettings.OverrideExcludeHistorical | ||
? excludeOnlyTheseContentIds.AppendRange(excludeAboveSectionContentIds).Distinct().ToArray() | ||
: excludeOnlyTheseContentIds; | ||
var excludeContentIds = excludeHistoricalContentIds.AppendRange(excludeReportContentIds).Distinct().ToArray(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed logic for excluding content from a linked report.
Fixed logic for excluding content from above sections.
Reports will not include duplicate content, and they will also exclude linked report content when configured to do so.