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
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
Comment #2
omarlopesinoComment #4
omarlopesinoCreated MR fixing the problem. Please review, thanks!
Comment #7
aaronbaumanCommitted to dev, thanks for the patch!