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

Files: 
CommentFileSizeAuthor
#1 ds-notice-undefined-1956738-1.patch1.09 KBMark Carver

Comments

Status:Active» Needs review
StatusFileSize
new1.09 KB

Here is a patch

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 :)

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

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

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.

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.