Moodle

Resource doesn't show course blocks when specified

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Duplicate
  • Affects Version/s: 1.8
  • Fix Version/s: None
  • Component/s: Resource
  • Labels:
    None
  • Environment:
    LAMP
  • Database:
    MySQL
  • Affected Branches:
    MOODLE_18_STABLE

Description

There is an attribute when editing a resource where you can specify that you wish to display course blocks when viewing the resource.
This attribute doesn't work, resulting in that course blocks never gets shown.

In mod/resource/lib.php on line 151 in function "display_course_blocks_start()" it says:
$pageblocks = blocks_setup($PAGE);

Change this to:
$pageblocks = blocks_setup($PAGE, BLOCKS_PINNED_BOTH);

Activity

Hide
Petr Škoda (skodak) added a comment -

Hello,
this issue was reported a few times, that was one of the reasons why the blocks were rewritten in 2.0, no fixing is planned for 1.9, sorry.

Petr Škoda

Show
Petr Škoda (skodak) added a comment - Hello, this issue was reported a few times, that was one of the reasons why the blocks were rewritten in 2.0, no fixing is planned for 1.9, sorry. Petr Škoda

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: