Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-78529

Add support to default site settings to course/defaultcompletion.php

XMLWordPrintable

    • 3
    • HQ 2023 Planning I3 Moppies

      Currently, the page course/defaultcompletion.php only supports courses (the id parameter with the course identifier is mandatory). However, it must be adapted to support the site course too (when no id parameter is sent). It implies:

      • Alter {course_completion_defaults} table to support null for the course field). This approach is followed by lti_tool_settings:

        FIELD NAME="course" TYPE="int" LENGTH="10" NOTNULL="false" SEQUENCE="false" COMMENT="Primary key of course (null for system-wide settings)"/>
        

      • Modify course/defaultcompletion.php to remove course as a required parameter and adapt code to support it (capabilities…), to guarantee data will be stored properly in the {course_completion_defaults} table with course=null when the course is empty. The site courses won't include Expect completed on dates.

            amaia Amaia Anabitarte
            sarjona Sara Arjona (@sarjona)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.