Problem/Motivation

When I try to push an entity to Salesforce or go to the mapped objects page, I receive the following error:

ArgumentCountError: Too few arguments to function Drupal\salesforce_mapping_ui\MappedObjectList::__construct(), 3 passed in web/modules/contrib/salesforce/modules/salesforce_mapping_ui/src/MappedObjectList.php on line 45 and exactly 4 expected in Drupal\salesforce_mapping_ui\MappedObjectList->__construct() (line 55 of web/modules/contrib/salesforce/modules/salesforce_mapping_ui/src/MappedObjectList.php).

Steps to reproduce

Using 5.0.x version of Salesforce:

  • Enable salesforce mapping module
  • GO to salesforce mapped objects page

After following the steps, the page with crash, and accesing to logs the error will appear as the cause.

Proposed resolution

Fix MappedObjectList createInstance method to inject date.formatter dependency

Issue fork salesforce-3419804

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

omarlopesino created an issue. See original summary.

omarlopesino’s picture

Assigned: Unassigned » omarlopesino

omarlopesino’s picture

Assigned: omarlopesino » Unassigned
Status: Active » Needs review

Created MR fixing the problem. Please review, thanks!

omarlopesino changed the visibility of the branch 5.0.x to hidden.

aaronbauman’s picture

Status: Needs review » Fixed

Committed to dev, thanks for the patch!

Status: Fixed » Closed (fixed)

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