Moodle

Add Course category to new course request

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Minor 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.

Issue Links

Activity

Hide
Patrick Pollet added a comment -

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.

Show
Patrick Pollet added a comment - 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.
Hide
Patrick Pollet added a comment -

Content :

rw-rr- root/root 9320 2007-06-04 12:05:59 course_request_with_categories.diff
rw-rr- root/root 4907 2007-06-04 11:44:58 request.php
rw-rr- root/root 3541 2007-06-04 10:26:03 request.html
rw-rr- root/root 6967 2007-06-04 10:33:40 pending.php

Show
Patrick Pollet added a comment - Content : rw-rr- root/root 9320 2007-06-04 12:05:59 course_request_with_categories.diff rw-rr- root/root 4907 2007-06-04 11:44:58 request.php rw-rr- root/root 3541 2007-06-04 10:26:03 request.html rw-rr- root/root 6967 2007-06-04 10:33:40 pending.php

People

Vote (2)
Watch (1)

Dates

  • Created:
    Updated: