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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

markhalliwell’s picture

Status: Active » Needs review
FileSize
1.09 KB

Here is a patch

swentel’s picture

Version: 7.x-2.x-dev » 8.x-2.x-dev
Status: Needs review » Patch (to be ported)

I went for !empty instead of isset - you still got the credit though :)

markhalliwell’s picture

Right on. Yeah I was tempted to change them, but figured I'd follow the existing isset instead.

aspilicious’s picture

In 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...

swentel’s picture

It 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.

swentel’s picture

Status: Patch (to be ported) » Fixed

Closing as '#bundle' simply doesn't exist anymore.

Status: Fixed » Closed (fixed)

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