Issue Details (XML | Word | Printable)

Key: MDL-8307
Type: Improvement Improvement
Status: Open Open
Priority: Minor Minor
Assignee: Martin Dougiamas
Reporter: Nicolas Martignoni
Votes: 2
Watchers: 1
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Add Course category to new course request

Created: 25/Jan/07 09:46 PM   Updated: 04/Jun/07 06:54 PM
Component/s: Course
Affects Version/s: 1.7.2, 1.8
Fix Version/s: None

File Attachments: 1. File course_request_with_categories.172.tgz (5 kB)

Issue Links:
Relates
 

Participants: Martin Dougiamas, Nicolas Martignoni and Patrick Pollet
Security Level: None
QA Assignee: Nicolas Martignoni
Affected Branches: MOODLE_17_STABLE, MOODLE_18_STABLE

Sub-Tasks  All   Open   
 Sub-Task Progress: 

 Description  « Hide
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.

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Patrick Pollet added a comment - 04/Jun/07 06:18 PM
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.


Patrick Pollet added a comment - 04/Jun/07 06:19 PM
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