Quantcast
Channel: Backup and restore
Viewing all articles
Browse latest Browse all 6511

Re: Change restore setting keep_roles_and_enrolments to yes

$
0
0
by Ângelo Rigo.  

I comment in the backup/util/ui/restore_ui.class.php file in the execute method these line :

if ($this->controller->get_target() == backup::TARGET_CURRENT_DELETING || $this->controller->get_target() == backup::TARGET_EXISTING_DELETING) {
$options = array();
//$options['keep_roles_and_enrolments'] = $this->get_setting_value('keep_roles_and_enrolments');
$options['keep_roles_and_enrolments'] = 1;
$options['keep_groups_and_groupings'] = $this->get_setting_value('keep_groups_and_groupings');
restore_dbops::delete_course_content($this->controller->get_courseid(), $options);

But seems have no effect even i choose deleting actual course option. 

 


Viewing all articles
Browse latest Browse all 6511

Trending Articles