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!