Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-14409

Template tags mismatch as Guest breaks list view

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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.

        Gliffy Diagrams

        1. MDL-14409.patch
          0.9 kB
          Robert Allerstorfer
        1. List_view_as_Administrator-OK.png
          17 kB
        2. List_view_as_Guest-ERROR.png
          19 kB

          Issue Links

            Activity

            Hide
            roal Robert Allerstorfer added a comment -

            The attached patch against MOODLE_19_STABLE fixes this bug.

            Show
            roal Robert Allerstorfer added a comment - The attached patch against MOODLE_19_STABLE fixes this bug.
            Hide
            dougiamas 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
            dougiamas 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

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  15/May/08