MDL-22588 restore scales - fix scales not being assigned to target course. Merged from 19_STABLE
MDL-22588 restore scales - fix scales not being assigned to target course. Merged from 19_STABLE

dilawar/moodle