Closed (fixed)
Project:
Imageinfo Cache
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
1 Mar 2015 at 17:43 UTC
Updated:
19 Mar 2015 at 01:54 UTC
Jump to comment: Most recent
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.
| Comment | File | Size | Author |
|---|---|---|---|
| entity_reference.patch | 687 bytes | hydra |
Comments
Comment #1
mikeytown2 commentedThanks for the patch! It has been committed.