Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm getting Notice: Undefined index: #entity_type in eck_entity_view_alter() in my logs just when visiting a node view page. In the case of my nodes at least there is not a #entity_type set in $view. However if you look at the docs https://api.drupal.org/api/drupal/modules%21system%21system.api.php/func...
$type is passed into the function so you don't need to find it in the $view array (or $build according to the docs but I digress).
Here's a patch.
I may have adjusted a few formatting issues as well :D
Comment | File | Size | Author |
---|---|---|---|
#9 | eck-2119129.patch | 967 bytes | jeff h |
entity_view_alter.patch | 1.86 KB | sonictruth | |
Comments
Comment #1
ycshen CreditAttribution: ycshen commentedchange status
Comment #2
fmizzell CreditAttribution: fmizzell commentedComment #7
jeff h CreditAttribution: jeff h commentedThis code seems to have vanished from 7.x-2.x HEAD and is still needed. Could you please re-commit this patch?
Comment #8
jeff h CreditAttribution: jeff h commentedReopening.
Comment #9
jeff h CreditAttribution: jeff h commentedThe original patch doesn't apply cleanly anymore. The attached one should.
Comment #11
fmizzell CreditAttribution: fmizzell commented