One of our courses has Labels with links to various sections in the course.
When we backup the course and restore it as a new course, the link is only partially updated: the course id is updated to the new course id, but the section id in the link isn't updated. This leads to a "Can not find data record in course_sections database table" error, which makes sense, since the section id from the backed up course is not relevant in the restored course.
Is this a bug? Should Moodle be updating the section ids too? If so, how can it be fixed?