Settings page is blank

christefanø - August 9, 2007 - 07:28
Project:Fasttoggle
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

The only things displayed on my Fasttoggle settings page are the Save and Reset buttons, and the "Configure what fast toggling options are available" text. Clicking Save seems to disable Fasttoggle links and resetting to defaults restores them.

Probably a module conflict. I'll post again if I find out what's going on.

#1

squaretone - August 16, 2007 - 16:40

If you log in as user 1 you can see the settings page propperly. It would seem that the 'administer fasttoggle' option was left out of the implementation of hook_perm()

to fix,
change line 77 from:

return array('promote posts', 'make posts sticky', 'moderate posts', 'moderate users', 'moderate comments');

to:

return array('promote posts', 'make posts sticky', 'moderate posts', 'moderate users', 'moderate comments', 'administer fasttoggle');

#2

squaretone - August 16, 2007 - 16:40

If you log in as user 1 you can see the settings page properly. It would seem that the 'administer fasttoggle' option was left out of the implementation of hook_perm()

to fix,
change line 77 from:

return array('promote posts', 'make posts sticky', 'moderate posts', 'moderate users', 'moderate comments');

to:

return array('promote posts', 'make posts sticky', 'moderate posts', 'moderate users', 'moderate comments', 'administer fasttoggle');

#3

christefanø - August 17, 2007 - 00:52
Status:active» patch (reviewed & tested by the community)

Thanks, squaretone. Works for me.

AttachmentSize
fasttoggle_admin.patch460 bytes

#4

kkaefer - August 17, 2007 - 08:56
Status:patch (reviewed & tested by the community)» fixed

Thanks a lot for figuring this out! I committed the patch.

#5

Anonymous - September 4, 2007 - 10:21
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.