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

Default values for some course format options do not apply

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.8.6, 2.9
    • Fix Version/s: 3.1.6, 3.2.3
    • Component/s: Course
    • Labels:
    • Testing Instructions:
      Hide
      1. Visit 'Site administration' > 'Courses' > 'Courses default settings'.
      2. Set the default format to 'Weekly format'.
      3. Visit the form to create a new course.
      4. Confirm 'Calculate the end date from the number of sections' is checked.
      5. Switch to the 'Topics' format.
      6. Switch back to 'Weeks' format.
      7. Confirm 'Calculate the end date from the number of sections' is checked.
      8. Uncheck it.
      9. Create the course.
      10. Re-edit the course.
      11. Confirm the checkbox remains unchecked.
      12. Edit the file course/format/weeks/lib.php and search for 'automaticenddate' until you find it's default value and change it to 0.
      13. Visit the form to create a new course.
      14. Confirm the checkbox is unchecked.
      15. NEW: Revert the code changed performed above.
      16. Create a course in topics format
      17. Edit it and change format to weeks
      18. Make sure the 'automaticenddate' is checked
      Show
      Visit 'Site administration' > 'Courses' > 'Courses default settings'. Set the default format to 'Weekly format'. Visit the form to create a new course. Confirm 'Calculate the end date from the number of sections' is checked. Switch to the 'Topics' format. Switch back to 'Weeks' format. Confirm 'Calculate the end date from the number of sections' is checked. Uncheck it. Create the course. Re-edit the course. Confirm the checkbox remains unchecked. Edit the file course/format/weeks/lib.php and search for 'automaticenddate' until you find it's default value and change it to 0. Visit the form to create a new course. Confirm the checkbox is unchecked. NEW: Revert the code changed performed above. Create a course in topics format Edit it and change format to weeks Make sure the 'automaticenddate' is checked
    • Affected Branches:
      MOODLE_28_STABLE, MOODLE_29_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE, MOODLE_32_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-50670_master

      Description

      I created a custom course format with course format options of types date_selector and advcheckbox. The default values for them do not apply when I create a course.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              marina Marina Glancy
              Reporter:
              marina Marina Glancy
              Peer reviewer:
              Mark Nelson
              Integrator:
              Dan Poltawski
              Tester:
              Dan Poltawski
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                8/May/17