Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-1529

Poll Block does not redirect correctly when placed on mymoodle page

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 1.7
    • None
    • RHEL/CentOS/Fedora
    • MOODLE_17_STABLE

      As a result of mymoodle's inability to provide an accurate pageid to page_create_instance() (MDL-4550) the Poll Block redirect is affected.

      When a user submits a response to the poll block the user is redirected to course/view?id=

      {courseid} - in the case of mymoodle {courseid}

      is the user's id causing in a invalid page to be displayed.

      I have created a patch for the Poll Block which checks if $_SERVER["HTTP_REFERER"] contains a mymoodle url and redirects back to my moodle if this is true.

        1. poll.mymoodle.diff
          0.5 kB
          Luke Tucker
        2. poll.mymoodle.fixed.diff
          0.5 kB
          Luke Tucker
        3. poll.mymoodle.diff
          0.5 kB
          Luke Tucker

            aborrow Anthony Borrow
            luketucker Luke Tucker
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.