Skip to content

Commit

Permalink
Fixed #308 by adding the Schema namespace to a reference of FieldSetM…
Browse files Browse the repository at this point in the history
…ember (now Schema.FieldSetMember)
  • Loading branch information
jongpie committed May 6, 2022
1 parent e0be2ca commit 10ea49e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ public with sharing class RelatedLogEntriesController {
this.fields = new List<FieldMetadata>();

Schema.FieldSet fieldSet = sobjectType.getDescribe().fieldSets.getMap().get(fieldSetName);
for (FieldSetMember fieldSetMember : fieldSet.getFields()) {
for (Schema.FieldSetMember fieldSetMember : fieldSet.getFields()) {
// Enforce field-level security (FLS)
if (fieldSetMember.getSObjectField().getDescribe().isAccessible()) {
this.fields.add(new FieldMetadata(fieldSetMember));
Expand Down Expand Up @@ -340,7 +340,7 @@ public with sharing class RelatedLogEntriesController {
@AuraEnabled
public String type { get; set; }

private FieldMetadata(FieldSetMember fieldSetMember) {
private FieldMetadata(Schema.FieldSetMember fieldSetMember) {
Schema.DescribeFieldResult fieldDescribe = fieldSetMember.getSObjectField().getDescribe();

this.fieldName = fieldSetMember.getFieldPath();
Expand Down

0 comments on commit 10ea49e

Please sign in to comment.