Active
Project:
CTools Auto-modal
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Sep 2012 at 00:05 UTC
Updated:
7 Nov 2014 at 17:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
sylus commentedChanging title
Comment #2
populist commentedIt looks like the line that is causing trouble here is $variables['options']['attributes']['class'][] = 'ctools-use-modal' which I don't think is a problem with CTools Automodal. Might there be a module that sets $variables['options']['attributes']['class'] to a string?
Comment #3
sylus commentedThanks for the pointer @populist, I set a breakpoint in ctools automodal where that assignment happens and it seems the only time it gets hit is by admin_menu.
I have attached a screenshot of what I think is the offending culprit in admin_menu_toolbar.module.
Comment #4
dave reidYep that code needs to be:
Comment #5
sylus commentedThanks @Dave Reid and @populist I have committed a patch at: http://drupal.org/node/1772766
This does indeed fix the problem.
Marking this issue as works as designed but if I could get either of your comments for the fix over at the other issue that would be grand :)
Comment #6
sylus commentedReopening to ask a question but feel free to close.
While the patch (from linked issue) does work I still have a problem in that when I select from admin_menu the default shortcut arrow, this will automatically fire up the ctools automodal dialog and cause an ajax error.
Should this issue be filed here or over still at admin_menu?
Comment #7
sylus commentedSetting to active for now.
Comment #8
adrupalfan commentedI had the same error message as above but the culprit was the colorbox module.
The fix is the same - I edited line 182 of the file "colorbox_handler_field_colorbox.inc" from:
'class' => 'colorbox-inline',to:
'class' => array('colorbox-inline'),which fixed the error.
Comment #9
socialnicheguru commented#8 has been fixed in colorbox as of 11/7/2014 dev version.