UniqueFieldsConstraintValidator class needs dependency injection

Created on 6 February 2024, 11 months ago
Updated 29 February 2024, 10 months ago

Problem/Motivation

When I click into the 'Salesforce' tab and try to push an entity I receive the following error:

ArgumentCountError: Too few arguments to function Drupal\salesforce_mapping\Plugin\Validation\Constraint\UniqueFieldsConstraintValidator::__construct(), 0 passed in web/core/lib/Drupal/Core/DependencyInjection/ClassResolver.php on line 31 and exactly 1 expected in Drupal\salesforce_mapping\Plugin\Validation\Constraint\UniqueFieldsConstraintValidator->__construct()

Steps to reproduce

Use salesforce mapping UI to push an entity from Drupal to salesforce.

Proposed resolution

Use ContainerInjectionInterface class.

🐛 Bug report
Status

Fixed

Version

5.0

Component

salesforce_mapping.module

Created by

🇪🇸Spain omarlopesino

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024