mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
Merge branch 'MDL-55356-master-fix' of https://github.com/andrewnicols/moodle
This commit is contained in:
commit
131e60741a
@ -102,7 +102,7 @@ abstract class restore_block_task extends restore_task {
|
||||
if (\core_search\manager::is_indexing_enabled()) {
|
||||
$wholecourse = $this->get_target() == backup::TARGET_NEW_COURSE;
|
||||
$wholecourse = $wholecourse || $this->setting_exists('overwrite_conf') && $this->get_setting_value('overwrite_conf');
|
||||
if (!$required) {
|
||||
if (!$wholecourse) {
|
||||
$this->add_step(new restore_block_search_index('block_search_index'));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user