Skip to content

Commit

Permalink
use object name as the label if label is missing
Browse files Browse the repository at this point in the history
replace object label with object name if it starts with "__MISSING LABEL__" prefix.
  • Loading branch information
ashitsalesforce committed Oct 26, 2023
1 parent f6411ba commit 1333172
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,12 @@ public boolean setEntityDescribes() throws ConnectionException {
setEntityTypes();
if (this.describeGlobalResults.isEmpty()) {
for (DescribeGlobalSObjectResult res : entityTypes.getSobjects()) {
if (res != null) this.describeGlobalResults.put(res.getName(), res);
if (res != null) {
if (res.getLabel().startsWith("__MISSING LABEL__")) {
res.setLabel(res.getName());
}
this.describeGlobalResults.put(res.getName(), res);
}
}
}

Expand Down

0 comments on commit 1333172

Please sign in to comment.