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.
panels_mini_contextual_links_view_alter tries to add contextual_links on mini panels printed through drupal regions system as a block, but checks for ['#block']->bid which it should be integer usually not sure if there a case where it is a string, replacing with ['#block']->module check for 'panels_mini' should be sufficient to check to make sure it is a mini_panels block.
Comment | File | Size | Author |
---|---|---|---|
#13 | panels-mini_panels_block_contextual_links-2427917-13.patch | 1.21 KB | mqanneh |
Comments
Comment #1
alaa abbad CreditAttribution: alaa abbad commentedComment #2
alaa abbad CreditAttribution: alaa abbad commentedComment #3
alaa abbad CreditAttribution: alaa abbad commentedComment #4
alaa abbad CreditAttribution: alaa abbad commented.
Comment #5
alaa abbad CreditAttribution: alaa abbad commentedComment #6
Jon Nunan CreditAttribution: Jon Nunan at Flight Centre Travel Group commentedCame across the same problem today, and it seems the original programmer also thought it should have worked this way:
https://www.drupal.org/node/1966020#comment-7281158
Perhaps a bug got fixed somewhere else? Anyway this patch fixes my use case, I think maybe you should have left the first
isset($element['#element']['#block'])
in the conditional though to prevent warnings on non-block conditional links being processed. And I don't think it still needs to be a strpos, can just be a straight string comparison right?Comment #7
japerryLooks like this one needs attention and is fairly easy to fix. Bump.
Comment #8
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot commented+1
Comment #9
dsnopekComment #10
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot commentedTested - Still works with Panels 7.x-3.8 release
Comment #11
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot commentedComment #12
japerryNeeds more testing and test results before being committed.
Comment #13
mqannehRerolling the patch against the most recent dev version.