Course format backup. ¿Mapping sections id?

Course format backup. ¿Mapping sections id?

by Enrique Castro -
Number of replies: 1
Picture of Core developers Picture of Particularly helpful Moodlers

Hi, I have a custom course format that stores a table with several settings for som sections of the course. Based on users and groups.

I know how to annotate in the backup the user and group ids. However, I cannot see how to map old sectionids to new sections ids after restore. ¿Is this posible?

Average of ratings: -
In reply to Enrique Castro

Re: Course format backup. ¿Mapping sections id?

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Dear Enrique,

Don't use section ids, use section numbers for matching.

Cheers,

Gareth