Skip to content

Commit

Permalink
fix null exclusions
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Jul 9, 2020
1 parent 32089c7 commit c635e74
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions force-app/main/default/classes/getRecommendations.cls
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,10 @@ public with sharing class getRecommendations {
);
if (exclusions != null && exclusions.size() > 0) {
rec.Hidden = true;
}
for (Service_Exclusion__c exclusion : exclusions) {
if (exclusion.Contact__r == null) {
rec.HiddenAll = true;
for (Service_Exclusion__c exclusion : exclusions) {
if (exclusion.Contact__c == null) {
rec.HiddenAll = true;
}
}
}
}
Expand Down

0 comments on commit c635e74

Please sign in to comment.