Blocks no longer display

jeffam - June 8, 2009 - 21:01
Project:CustomError
Version:6.x-1.1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

It's probably debatable if this is a bug, but here it is:

I have the user login block set to show on node/add/* pages. The block appears when using Drupal's built-in Access Denied page (i.e. nothing set in the Error reporting settings).

But when I use a custom error, either a real node or the page from this module, the block no longer appears.

This patch adds:

menu_set_active_item($_REQUEST['q']);

to the custom page, which allows the block to appear again.

I'd be curious to hear other opinions about this.

Regards,
Jeff

AttachmentSize
menu_active_fix.patch372 bytes
 
 

Drupal is a registered trademark of Dries Buytaert.