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

Previous and Next links are wrong in the block calendar within a resource page

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.6.3, 1.6.4, 1.6.5, 1.6.6, 1.7, 1.7.1, 1.7.2, 1.7.3, 1.7.4, 1.8, 1.8.1, 1.8.2, 1.8.3, 1.8.4, 1.8.5, 1.9
    • Fix Version/s: None
    • Component/s: Calendar, Resource
    • Labels:
      None
    • Affected Branches:
      MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      When the calendar block is showed in a resource page, the next and previous month's links are wrong. Instead of using the resource id in the link, it uses the course id.

      Example:
      Actual link (which is wrong): http://moodle.polymtl.ca/mod/resource/view.php?id=33&cal_m=6&cal_y=2008 where 33 is the course id.

      The correct link should be: http://moodle.polymtl.ca/mod/resource/view.php?id=3473&cal_m=5&cal_y=2008 where 3473 is the current resource id.

      Since the link is /mod/resource/view.php, Moodle shows (or try to show) the resource id #33 (which is the course id).

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: