LDAP autocreate courses bypasses Coure default settings?

LDAP autocreate courses bypasses Coure default settings?

بواسطة - Visvanath Ratnaweera
عدد الردود: 2
صورة Particularly helpful Moodlers صورة Translators
I have a setup where courses are autocreated according to http://docs.moodle.org/19/en/LDAP_enrolment.

I've changed Site Administration -> Course default settings -> Format to "Weekly format" and Metacourse to Yes. But the courses created have Topics format and are not meta courses. Is this a bug?

Moodle $release = '1.9.16+ (Build: 20120202)'
LAMP on Debian Squeeze, PHP 5.3.3-7+squeeze8.
متوسط التقييمات: -
رداً على Visvanath Ratnaweera

Re: LDAP autocreate courses bypasses Coure default settings?

بواسطة - Iñaki Arenaza
صورة Core developers صورة Documentation writers صورة Peer reviewers صورة Plugin developers
Yup, this is a bug حزين

LDAP enrolment course creation doesn't respect those settings at all. They didn't exist back in the day when the LDAP enrolment course creation was implemented, and the code wasn't updated when they were introduced. I suspect none of the enrolment plugins that auto creates courses respect those settings (I'm talking about 1.x, it seems they do in 2.2 and later).

But given that 1.x is in security-fixes-only mode, I highly doubt this is going to be fixed in the official version. I think the fix is rather trivial (it would be a backport from 2.2). Here's a patch for 1.9.17+ (it should apply to 1.9.16+ cleanly). I haven't tested it, but it's so trivial that it should work مبتسم

Saludos.
Iñaki.
رداً على Iñaki Arenaza

Re: LDAP autocreate courses bypasses Coure default settings?

بواسطة - Visvanath Ratnaweera
صورة Particularly helpful Moodlers صورة Translators
Hi Iñaki

That was a straight patch!

Applied to 1.9.16+, since it is the working test version. Checked by changing the course defaults to "Weekly format" and "Meta" and logging in as a first time user. Works perfectly. Many thanks!