Skip to content

Commit

Permalink
Fixed issue where object name was provided at start of additional fie…
Browse files Browse the repository at this point in the history
…ld names
  • Loading branch information
tomansley committed Sep 6, 2024
1 parent b5874b2 commit ec59b02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions force-app/main/default/classes/ListViewCore.cls
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @description :
* @author : [email protected]
* @last modified on : 08-13-2024
* @last modified on : 08-30-2024
* @last modified by : [email protected]
* Modifications Log
* Ver Date Author Modification
Expand Down Expand Up @@ -348,7 +348,7 @@ public with sharing class ListViewCore extends ListViewAbstract {

ListViewHelper.StandardColumn newColumn = new ListViewHelper.StandardColumn();
newColumn.type = fieldData.getType();
newColumn.fieldNameOrPath = fieldName;
newColumn.fieldNameOrPath = fieldName.removeStart(listView.Object_Name__c + '.'); //must remove the object name if its present. i.e. If we are looking for Account.Name on the Account just make it Name
newColumn.hidden = false;
newColumn.label = label;

Expand Down

0 comments on commit ec59b02

Please sign in to comment.