I have a trigger on an object, and in that trigger I am doing the following:
List<ApexPages.Message> msgs = RecordValidator.isValidRecord(thisObj, criteria, matchingObjectUnionList.values());
if (!msgs.isEmpty()) {
// add messages to page
for (ApexPages.Message m : msgs) {
system.debug(m.getDetail());
thisDef.addError(m.getDetail());
}
}
I have confirmed in my debug logs that two errors are found for blah 3 and blah each (see image below), so each of those gets two errors added through addError.
However, in the list view for my object when I try to update using inline edit, It gets the two errors according to debug logs, but when I click the red warning sign:
only one of the two is shown...
Is that a known issue with addError in lightning experience? Or how can I make sure it is displaying all errors it adds through addError?