A recent change causes method getRecordTypeIdByDeveloperName() in the RestClient to throw an exception every time.

It uses getRecordTypes($name) to set the $record_types variable keyed by a specific salesforce object. But when it does it's check, it includes the $name in the array chain, so it's looking one level too high.

Comments

dkosbob created an issue. See original summary.

dkosbob’s picture

StatusFileSize
new649 bytes
aaronbauman’s picture

Status: Active » Needs review
aaronbauman’s picture

Status: Needs review » Reviewed & tested by the community

Yup, this is an obvious one.
Gonna get this in right away.

  • aaronbauman committed 0c27ab1 on 8.x-3.x authored by dkosbob
    Issue #3018788 by dkosbob: fix logic in getRecordTypeIdByDeveloperName()
    
aaronbauman’s picture

Status: Reviewed & tested by the community » Fixed

committed, thanks for catching this!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.