Refs #7850 Added prefix to courseid

See comment: http://dev.equella.com/issues/7850#note-12