Skip to content

Commit

Permalink
Merge pull request #7242 from SalesforceFoundation/feature/252__W-150…
Browse files Browse the repository at this point in the history
…46973-add-formula-field-to-manage-allocations-fieldset

W-15046973 Fix error on adding formula field to GAU allocations fieldset
  • Loading branch information
npsp-reedestockton authored Jul 19, 2024
2 parents 35ad740 + 7092b1d commit 5f7b99a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ public with sharing class ALLO_ManageAllocations_CTRL {
objectFields.add(Allocation__c.General_Accounting_Unit__c.getDescribe().getSobjectField());

for(Schema.FieldSetMember additionalField : additionalAllocationFields) {
Schema.DescribeFieldResult fieldResult = additionalField.getSObjectField().getDescribe();
if (fieldResult.isCalculated() || !fieldResult.permissionable || additionalField.getFieldPath().contains('__r')) {
continue;
}
objectFields.add(additionalField.getSObjectField());
}

Expand Down

0 comments on commit 5f7b99a

Please sign in to comment.