Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion backup/moodle2/restore_learningmap_activity_task.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

use mod_learningmap\migrationhelper;
use mod_learningmap\cachemanager;

defined('MOODLE_INTERNAL') || die();
global $CFG;
Expand All @@ -24,7 +25,7 @@
* Restore class for mod_learningmap
*
* @package mod_learningmap
* @copyright 2021-2024, ISB Bayern
* @copyright 2021-2026, ISB Bayern
* @author Stefan Hanauska <stefan.hanauska@csg-in.de>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
Expand Down Expand Up @@ -127,5 +128,9 @@ public function after_restore(): void {
$item->placestore = json_encode($placestore);
$item->course = $courseid;
$DB->update_record('learningmap', $item);

// Reset backlink cache for the course as there might be activities included
// in this learning map that need to show a new link.
cachemanager::reset_backlink_cache($courseid);
}
}
Loading