With the move to changing the deltas for each bean, the #contextual_links array is broken in bean_block_view_alter. The array is expecting a numeric id vs. the new non-numeric delta.

I'm not sure where to adjust the "block" object to be sure to provide the "bid" from the {bean}.

Comments

indytechcook’s picture

StatusFileSize
new1.01 KB

Try this. I haven't tested because I don't normally use contextual links.

Cheers :)

indytechcook’s picture

Status: Active » Needs review
avr’s picture

Status: Needs review » Reviewed & tested by the community

Perfect - thanks for taking a look and offering the patch.

This module is great - thanks for the work and documentation on Treehouse/slides from camps. Super helpful.

mrfelton’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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

avr’s picture

Status: Closed (fixed) » Needs review
StatusFileSize
new434 bytes

With the update to Bean's use of Entity APIs, this is again broken. This time I actually see how things are working. Patch attached.

aheimlich’s picture

I can confirm that the patch from #6 works.

indytechcook’s picture

Status: Needs review » Needs work
+++ b/bean.moduleundefined
@@ -621,7 +621,7 @@ function bean_block_view($delta = '') {
-    $return['content']['#contextual_links']['bean'] = array('block', array($bean->internalIdentifier()));

Use the Identifier() method instead of the delta property. While it's the same thing in the end, it's good practice to use the API methods.

indytechcook’s picture

Status: Needs work » Active
Issue tags: +Needs tests

The fix is in. http://drupal.org/commitlog/commit/22232/88fbe423739a654cd1e0b5e53cdf138...

Setting this it Active and "needs tests" so we can add this to the list of bugs that need to be verified.

Cheers!

indytechcook’s picture

Issue tags: +Release blocker

Add Release Blocker

indytechcook’s picture

Status: Active » Fixed

Setting to fixed since I'm cross posting to #1160058: Make Tests

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