Hi, great module! I have problems making this work with paragraphs module.
I could track done the issue to this code, where the field name is taken before the entity bundle. When I switch those, it works for me.

<?php
  elseif (!empty($entity->field_name)) {
    $bundle_name = $entity->field_name;
  }
  elseif (!empty($entity->bundle)) {
    $bundle_name = $entity->bundle;
  }
?>

I havent fully tested if this has sideffects to other usecases. Since I don't know why this has been done, it would be great to have some feedback.

CommentFileSizeAuthor
entity_reference.patch687 bytesHydra
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mikeytown2’s picture

Status: Needs review » Fixed

Thanks for the patch! It has been committed.

  • mikeytown2 committed 85b3218 on 7.x-3.x authored by Hydra
    Issue #2443835 by Hydra: Make it work with paragraphs module
    

Status: Fixed » Closed (fixed)

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