Closed (duplicate)
Project:
Drupal core
Version:
6.16
Component:
block.module
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Mar 2010 at 13:21 UTC
Updated:
2 Apr 2010 at 15:39 UTC
When "Show on only the listed pages" is selected on the box-configuration page, but no path's or wildcards are inserted in the pages-textarea, the box will be visible on all pages.
In block.module (function block_list()) there's a test "Match path if necessary". This test returns false when no pages are entered. As a result, the variable $page_match will always be true when the pages-textarea is empty.
This can be resolved by changing r 470:
changed:
$page_match = TRUE;
to:
$page_match = ($block->visibility == 0? TRUE : FALSE);
Comments
Comment #1
mr.baileysDuplicate of #255141: Blocks are incorrectly shown when "pages" is left blank.