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

Default values for some course format options do not apply

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.8.6, 2.9
    • 3.1.6, 3.2.3
    • Course
    • MOODLE_28_STABLE, MOODLE_29_STABLE
    • MOODLE_31_STABLE, MOODLE_32_STABLE
    • MDL-50670_master
    • 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

    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

              marina Marina Glancy
              marina Marina Glancy
              Mark Nelson Mark Nelson
              Dan Poltawski Dan Poltawski
              Dan Poltawski Dan Poltawski
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                8/May/17