Moodle

course create/update refactoring

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 2.0
  • Fix Version/s: 2.0
  • Component/s: Course
  • Labels:
    None
  • Affected Branches:
    MOODLE_20_STABLE
  • Fixed Branches:
    MOODLE_20_STABLE

Description

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

Activity

Hide
Tim Hunt added a comment -

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.

Show
Tim Hunt added a comment - 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.
Hide
Jerome Mouneyrac added a comment -

Petr, from looking to the CVS annotation I'm pretty sure you have resolved this issue during the enrolment project. Assigned it to you.

Show
Jerome Mouneyrac added a comment - Petr, from looking to the CVS annotation I'm pretty sure you have resolved this issue during the enrolment project. Assigned it to you.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: