Skip to content
Snippets Groups Projects
Commit 72a9bed2 authored by Maria Fisher's avatar Maria Fisher Committed by Aaron Bauman
Browse files

Issue #3154024 by mariacha1: Undefined index: config_dependencies

parent 0567f3ae
No related branches found
No related tags found
No related merge requests found
......@@ -140,6 +140,7 @@ class RelatedIDs extends SalesforceMappingFieldPluginBase {
*/
public function getPluginDefinition() {
$definition = parent::getPluginDefinition();
$definition['config_dependencies']['config'] = [];
// Add reference field.
if ($field = FieldConfig::loadByName($this->mapping->getDrupalEntityType(), $this->mapping->getDrupalBundle(), $this->config('drupal_field_value'))) {
$definition['config_dependencies']['config'][] = $field->getConfigDependencyName();
......
......@@ -98,6 +98,7 @@ class RelatedProperties extends SalesforceMappingFieldPluginBase {
*/
public function getPluginDefinition() {
$definition = parent::getPluginDefinition();
$definition['config_dependencies']['config'] = [];
$field_name = $this->config('drupal_field_value');
if (strpos($field_name, ':')) {
list($field_name, $dummy) = explode(':', $field_name, 2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment