Skip to content
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 Household Regression #7222

Merged
merged 16 commits into from
Dec 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions force-app/main/default/classes/HH_Container_LCTRL.cls
Original file line number Diff line number Diff line change
Expand Up @@ -551,21 +551,12 @@ public with sharing class HH_Container_LCTRL {
}

Set<String> addressFields = new Set<String>{
'Default_Address__c',
'Household_Account__c',
'Address_Type__c',
'MailingStreet__c',
'MailingStreet2__c',
'MailingCity__c',
'MailingState__c',
'MailingPostalCode__c',
'MailingCountry__c',
'Seasonal_Start_Month__c',
'Seasonal_Start_Day__c',
'Seasonal_End_Month__c',
'Seasonal_End_Day__c',
'Geolocation__Latitude__s',
'Geolocation__Longitude__s'
'MailingCountry__c'
};

for (String addressField : addressFields) {
Expand Down
7 changes: 4 additions & 3 deletions force-app/main/default/classes/HH_ManageHH_CTRL.cls
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,12 @@ public with sharing class HH_ManageHH_CTRL {
String accountToCheck = isHHAccount ? 'Account' : 'npo02__Household__c';
Set<String> fieldsToCheck = new Set<String>();
for (FieldSetMember fsMember : hhFieldSet) {
DescribeFieldResult dfr = fsMember.getSObjectField().getDescribe();
if (dfr.isCalculated() || !dfr.permissionable || fsMember.getFieldPath().contains('__r')) {
continue;
}
fieldsToCheck.add(fsMember.getFieldPath());
}
if (isHHAccount) {
fieldsToCheck.add('npo02__Household__c');
}
for (String fieldToCheck : fieldsToCheck) {
if (!UTIL_Permissions.canUpdate(accountToCheck, fieldToCheck, false)) {
return false;
Expand Down
Loading