Needs review
Project:
Modal forms (with ctools)
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Sep 2012 at 16:25 UTC
Updated:
14 May 2013 at 09:22 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
zet commentedAfter further review, i see the issue described above happens when there is a specific administration theme set up. So the blocks page display just that administration theme's blocks configuration, regardless clicking links for other themes blocks page configuration.
After disabling Modal forms module, everything goes back to normal.
Comment #2
cluke009 commentedCould you let me know which theme you are using and perhaps add a screenshot
Comment #3
graysadler commentedI have the same issue using RootCandy admin theme. The issue appears to be related to hook_init and not returning when on admin urls.
For some reason I can't create a patch, but here's my code to fix it. First check if _modal_forms_doheader returns true and if not return:
and then in _modal_forms_doheader be sure to return true:
Comment #4
dalinMarking as critical since this can result in data loss if someone saves the block admin page while the page is in this broken state.
My problem was actually two-fold. I was dealing with the issue described in #3. But there was an additional problem where a WYSIWYG had mangled the "Deactivate modal forms on specific pages" field at /admin/settings/modal_forms (wrapping in p tags and replacing line breaks with spaces). So for other people dealing with this, be sure to check that as well.
Patch attached that instead moves the ctools calls to the bottom of
_modal_forms_doheader()(Since we those are mandatory to make the whole thing work).Comment #5
frjo commentedIt was user cluke009 that committed the D6 version but noting has happened after the first commit. If anyone is interested in taking over the D6 branch please let my know.
Comment #5.0
frjo commentedtypo
Comment #6
aiphesi had this issue and just find the cause trouble : modal_forms on D6 multisite.
thanks for the patch.