Closed (fixed)
Project:
Contextual links
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Nov 2010 at 12:48 UTC
Updated:
30 Nov 2010 at 22:00 UTC
When you create a field view and use it as a block in your site, the contextual views edit link does link to the correct view, but does not include the #fragment for the display_id.
The reason is that the code for fetching the display_id is dependent on the $object being a view, not a block:
if ($display_id = $object->display_handler->display->id) { ...
Attached patch fetches the view display_id conditionally from either $object being a view object or $object being a block (where the display_id is part of the block's delta).
Somewhat related to #931286: Working views integration
| Comment | File | Size | Author |
|---|---|---|---|
| contextual.module-views-displayid.patch | 1.39 KB | teezee |
Comments
Comment #1
philbar commentedhttp://drupal.org/cvs?commit=452066