Moodle

Restore: restore to parameter was missing

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Duplicate
  • Affects Version/s: 1.7
  • Fix Version/s: 1.7
  • Component/s: Backup
  • Labels:
    None
  • Environment:
    Moodle 1.7 on test.moodle.com

Description

This was tested at test.moodle.com, using my own user account and admin role.

Steps to reproduce:
1. Backup a course
2. Try to restore it
3. Choose where to restore (new course, existing course etc)

What I expected to happen:
There should be dropdown list of where to restore.

What actually happen:
Dropdown list is empty. (see screenshot attachements)
Notice: Undefined variable: restore_restoreto_options in /home/moodtest/public_html/backup/restore_form.html on line 181

And when I press continue:

Course restore: backup-cf101-20061004-1603.zip

Notice: Undefined property: shortname in /home/moodtest/public_html/backup/restore_check.html on line 22
Notice: Undefined property: fullname in /home/moodtest/public_html/backup/restore_check.html on line 23
Notice: Undefined property: startyear in /home/moodtest/public_html/backup/restore_check.html on line 24
Notice: Undefined property: startmonth in /home/moodtest/public_html/backup/restore_check.html on line 24
Notice: Undefined property: startday in /home/moodtest/public_html/backup/restore_check.html on line 24

A required parameter (restore_restoreto) was missing

Issue Links

Activity

Hide
Jani Lemmetyinen added a comment -

I guess this bug is related to roles? That's because I tested this again in test.moodle.com as Admin User. Dropdown list (restoreto_options) was working OK, but restore halts again:
Fatal error: Call to undefined function: after_restore() in /home/moodtest/public_html/backup/restorelib.php on line 813
(see MDL-6515)

Show
Jani Lemmetyinen added a comment - I guess this bug is related to roles? That's because I tested this again in test.moodle.com as Admin User. Dropdown list (restoreto_options) was working OK, but restore halts again: Fatal error: Call to undefined function: after_restore() in /home/moodtest/public_html/backup/restorelib.php on line 813 (see MDL-6515)
Hide
Eloy Lafuente (stronk7) added a comment -

Hi, clossing this as duplicate of MDL-6515. I hope you're ok with the decission, Jani.

Show
Eloy Lafuente (stronk7) added a comment - Hi, clossing this as duplicate of MDL-6515. I hope you're ok with the decission, Jani.
Hide
Jani Lemmetyinen added a comment -

Hi,

that's OK, Eloy.

Show
Jani Lemmetyinen added a comment - Hi, that's OK, Eloy.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: