Skip to content

Commit

Permalink
Merge pull request #131 from Salesforce-org-Impact-Labs/feature/hidde…
Browse files Browse the repository at this point in the history
…nAll

hiddenAll
  • Loading branch information
mshanemc authored Jul 9, 2020
2 parents 5053ff0 + c635e74 commit f14f140
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions force-app/main/default/classes/getRecommendations.cls
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public with sharing class getRecommendations {
SR.MailingCity = service.City__c;
SR.Website = service.Website__c;
SR.Hidden = false;
SR.HiddenAll = false;
SR.totalRatings = 0;
SR.Indicators = new List<ServiceRecommendation.Indicator>();
SR.Comments = new List<ServiceRecommendation.Comment>();
Expand Down Expand Up @@ -184,6 +185,11 @@ public with sharing class getRecommendations {
);
if (exclusions != null && exclusions.size() > 0) {
rec.Hidden = true;
for (Service_Exclusion__c exclusion : exclusions) {
if (exclusion.Contact__c == null) {
rec.HiddenAll = true;
}
}
}
}
return recs;
Expand Down

0 comments on commit f14f140

Please sign in to comment.