Invalid context id specified context

Re: Invalid context id specified context

by Steve Lawrence -
Number of replies: 2

Let's say that someone actually wants the same quiz in two different courses - one might be, for example, a summary of a series of courses with the quizzes all brought together - which is what a couple of these seem to be - what would be the correct way to do this without breaking the upgrade routine?

In reply to Steve Lawrence

Re: Invalid context id specified context

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

This is really not supported. The only case I know where someting like this was possible is in ForumNG, where sam marshall did an amazing hack to make it appear that one forum is shared between two different courses. (We are not proposing to include that bit when we submit ForumNG for inclusion in some future Moodle version.)

To be honest, a better approach is to make a new course "Shared quizzes" which might be a Metacourse, and then enrol all the students from both separate courses in that.

In reply to Tim Hunt

Re: Invalid context id specified context

by Steve Lawrence -

Noted, thanks.  And yes, I have learned a fair bit about the scarily complicated Moodle database during this process. smile  It's also blown off a bit of dust from my SQL.

Cheers.