Issue Details (XML | Word | Printable)

Key: MDL-17269
Type: Sub-task Sub-task
Status: Open Open
Priority: Critical Critical
Assignee: Jerome Mouneyrac
Reporter: Petr Skoda
Votes: 0
Watchers: 0
Operations

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

course create/update refactoring

Created: 18/Nov/08 07:20 PM   Updated: 08/May/09 04:25 PM
Return to search
Component/s: Course
Affects Version/s: 2.0
Fix Version/s: 2.0

Participants: Jerome Mouneyrac, Petr Skoda and Tim Hunt
Security Level: None
Affected Branches: MOODLE_20_STABLE
Fixed Branches: MOODLE_20_STABLE


 Description  « Hide
At present the course creation is hardcoded in course/edit.php script,
it is duplicated in auth and enrol plugins which is often causing problems

solution:
* create_course(), update_course() in lib/courselib.php


 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Tim Hunt added a comment - 08/May/09 04:25 PM
If you search the code for 'blocks_add_default_course_blocks', that will find all the places we have duplicated code to create a course. They all need to be replaced by calls to the new create_course function.