Loading src/EntityCopyReference.php +31 −29 Original line number Diff line number Diff line Loading @@ -94,6 +94,7 @@ class EntityCopyReference { $clone->changed = time(); if (array_key_exists($node->bundle(), $config['content_types'])) { if (isset($config['content_types'][$node->bundle()]['reference_fields']) && !empty($config['content_types'][$node->bundle()]['reference_fields'])) { foreach ($config['content_types'][$node->bundle()]['reference_fields'] as $field => $option) { if (!$node->hasField($field)) { Loading Loading @@ -130,6 +131,7 @@ class EntityCopyReference { } } } } } Loading Loading
src/EntityCopyReference.php +31 −29 Original line number Diff line number Diff line Loading @@ -94,6 +94,7 @@ class EntityCopyReference { $clone->changed = time(); if (array_key_exists($node->bundle(), $config['content_types'])) { if (isset($config['content_types'][$node->bundle()]['reference_fields']) && !empty($config['content_types'][$node->bundle()]['reference_fields'])) { foreach ($config['content_types'][$node->bundle()]['reference_fields'] as $field => $option) { if (!$node->hasField($field)) { Loading Loading @@ -130,6 +131,7 @@ class EntityCopyReference { } } } } } Loading