Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 1.7.2, 1.8
-
Fix Version/s: None
-
Component/s: Course
-
Labels:None
-
Affected Branches:MOODLE_17_STABLE, MOODLE_18_STABLE
Description
In course request form, the ability to also suggest a existing course category (eg. via dropdown menu) would be advantageous. The default category for requested courses should be proposed as the default choice, but i can think of many instances where choosing the correct category would be good.
Please find enclosed a patch to Moodle 1.72 course files to allow :
-added a drop down of current categories with the config default category selected
-added a field for course idnumber
this required adding to mdl_course_request table :
category int(11) Non 0 Pp categorie ou inserer le cours
idnumber varchar(64) Oui NULL PP code ECTS
as per http://tracker.moodle.org/browse/MDL-6160
the following code should also be added to admin/cron.php
mtrace("Checking course creation requests");
if ($pending = get_records("course_request")) { // $admin = get_admin(); $admin=get_record('user','username','your_course_manager'); $subject = "Moodle Course requests pending"; $messagetext = "Course requests have been submitted for approval. Please check $CFG->wwwroot/course/pending.php."; email_to_user($admin,$admin,$subject,$messagetext); }
mtrace("Course requests checked");
Cheers.