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.
Hi,coming from entity_view_mode as suggested here filing bugreport: http://drupal.org/node/1738644#comment-7236124
I got these errors;
Notice: Undefined index: #bundle in ds_contextual_links_view_alter() (line 1301 of /sites/all/modules/ds/ds.module).
Notice: Undefined index: in _field_ui_bundle_admin_path() (line 325 of /modules/field_ui/field_ui.module).
greetings, Martijn
Comment | File | Size | Author |
---|---|---|---|
#1 | ds-notice-undefined-1956738-1.patch | 1.09 KB | markhalliwell |
Comments
Comment #1
markhalliwellHere is a patch
Comment #2
swentel CreditAttribution: swentel commentedI went for !empty instead of isset - you still got the credit though :)
Comment #3
markhalliwellRight on. Yeah I was tempted to change them, but figured I'd follow the existing isset instead.
Comment #4
aspilicious CreditAttribution: aspilicious commentedIn d8 we are facing this major issue :s
// Contextual links changed so much that it is impossible to fetch the bundle
// and the view_mode of tho object the contextual link is attached to.
// This makes me a sad panda as that makes this function useless...
Comment #5
swentel CreditAttribution: swentel commentedIt more or less works not again, see http://drupalcode.org/project/ds.git/blobdiff/fa0bb9a013e26652498f6a3805... need to test more with other entity types and see to make it abstract as it's now hardcoded to nodes.
Comment #6
swentel CreditAttribution: swentel commentedClosing as '#bundle' simply doesn't exist anymore.