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

Moodle redirect instructor to system configuration page if restore is canceled in middle

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8
    • Fix Version/s: 1.8.4, 1.9, 2.0
    • Component/s: Backup
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE, MOODLE_20_STABLE

      Description

      I'm starting to contribute back to the moodle community about some customizations/bug fixes we made here at SFSU, as we haven't got a chance to organize these and contribute them back to the community yet.

      In original state moodle redirects instructor to system configuration page if restore is cancelled in middle. This is unwanted becuase instructors do not have access to admin page so they will be logged out. In this bug fix we have changed the code to redirect user to respective course index page if restore is canceled.

      File(s) effected: /backup/restore.php

      Change :
      Replaced
      #107 print_continue("$CFG->wwwroot/$CFG->admin/index.php");
      with
      #107 print_continue("$CFG->wwwroot/course/view.php?id=".$id);

      Please consider to check this into the moodle core code. Thanks!

        Attachments

          Activity

            People

            Assignee:
            poltawski Dan Poltawski
            Reporter:
            chuang Wen Hao Chuang
            Tester:
            Nobody
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            7 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              11/Jan/08