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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.8.4, 1.9, 2.0
    • 1.8
    • Backup
    • None
    • MOODLE_18_STABLE
    • MOODLE_18_STABLE, MOODLE_19_STABLE, MOODLE_20_STABLE

      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!

            poltawski Dan Poltawski
            chuang Wen Hao Chuang
            Nobody Nobody
            Votes:
            7 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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