Moodle

Template tags mismatch as Guest breaks list view

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: 1.9
  • Fix Version/s: 1.9.1
  • Labels:
    None
  • Database:
    Any
  • Affected Branches:
    MOODLE_19_STABLE
  • Fixed Branches:
    MOODLE_19_STABLE

Description

When using templates tags in the listtemplate, such as ##edit##, ##delete##, ##more## or ##moreurl##, the list view works fine when logged in as Administrator (see attached screenshot "List_view_as_Administrator-OK").

However, when the same list is viewed as a Guest, it gets broken (see attached screenshot "List_view_as_Guest-ERROR").

Sorry for submitting this as a blocker, but this bug in fact stops the database to be used in a production environment, as I do it.

Issue Links

Activity

Hide
Robert Allerstorfer added a comment -

The attached patch against MOODLE_19_STABLE fixes this bug.

Show
Robert Allerstorfer added a comment - The attached patch against MOODLE_19_STABLE fixes this bug.
Hide
Martin Dougiamas added a comment -

Thanks Robert!

Dongsheng fixed this earlier today without having seen your bug: http://cvs.moodle.org/moodle/mod/data/lib.php?r1=1.137.2.21&r2=1.137.2.22

(same fix though!)

Show
Martin Dougiamas added a comment - Thanks Robert! Dongsheng fixed this earlier today without having seen your bug: http://cvs.moodle.org/moodle/mod/data/lib.php?r1=1.137.2.21&r2=1.137.2.22 (same fix though!)

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: