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

Unable to use space a section name to have a section without a header

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.0.3
    • 3.0.2
    • Course
    • MOODLE_30_STABLE
    • MOODLE_30_STABLE
    • MDL-53071-master
    • Hide
      Setup
      1. Create a course with the following settings:
        • Under Course format:
          • Format - Topics format
          • Number of sections - 1 or more.
      Default
      1. Under Course administration, click Turn editing on.
      2. On Topic 1, click on the Edit menu and click Edit topic.
        • Confirm that Use default section [Topic 1] is checked.
      Empty section name.
      1. Uncheck Use default section [Topic 1].
      2. Leave Section name empty then click "Save changes"
        • Confirm that the section name remains as Topic 1
      3. Click again Topic 1's Edit menu and click Edit topic.
        • Confirm that Use default section [Topic 1] is checked.
      Section name composed only of blank space(s)
      1. Uncheck Use default section [Topic 1].
      2. Type a space into Section name.
      3. Click Save changes
        • Back on the course page, confirm that section 1's name is blank.
      4. Click again section 1's Edit menu and click Edit topic.
        • Confirm that Use default section [Topic 1] is unchecked.
        • Confirm that the Section name still contains a blank space.
      Custom section name
      1. Type "Custom section name" into the Section name field.
      2. Click Save changes
        • Back on the course page, confirm that section 1's name is set to "Custom section name".
      3. Click again section 1's Edit menu and click Edit topic.
        • Confirm that Use default section [Topic 1] is unchecked.
        • Confirm that the Section name is still is set to "Custom section name".
      Back to default
      1. Mark Use default section name [Topic 1] as checked.
      2. Click Save changes.
        • Back on the course page, confirm that section 1's name is set to "Topic 1".
      3. Click again section 1's Edit menu and click Edit topic.
        • Confirm that Use default section [Topic 1] is checked.
        • Confirm that Section name is disabled and is empty.
      Bonus:
      • Repeat the above steps for a course with Course format = Weekly format
      Show
      Setup Create a course with the following settings: Under Course format : Format - Topics format Number of sections - 1 or more. Default Under Course administration , click Turn editing on . On Topic 1, click on the Edit menu and click Edit topic . Confirm that Use default section [Topic 1] is checked. Empty section name. Uncheck Use default section [Topic 1] . Leave Section name empty then click "Save changes" Confirm that the section name remains as Topic 1 Click again Topic 1's Edit menu and click Edit topic . Confirm that Use default section [Topic 1] is checked. Section name composed only of blank space(s) Uncheck Use default section [Topic 1] . Type a space into Section name . Click Save changes Back on the course page, confirm that section 1's name is blank. Click again section 1's Edit menu and click Edit topic . Confirm that Use default section [Topic 1] is unchecked. Confirm that the Section name still contains a blank space. Custom section name Type "Custom section name" into the Section name field. Click Save changes Back on the course page, confirm that section 1's name is set to "Custom section name". Click again section 1's Edit menu and click Edit topic . Confirm that Use default section [Topic 1] is unchecked. Confirm that the Section name is still is set to "Custom section name". Back to default Mark Use default section name [Topic 1] as checked. Click Save changes . Back on the course page, confirm that section 1's name is set to "Topic 1". Click again section 1's Edit menu and click Edit topic . Confirm that Use default section [Topic 1] is checked. Confirm that Section name is disabled and is empty. Bonus: Repeat the above steps for a course with Course format = Weekly format
    • 3.1 Sprint 4

      Prior to Moodle 3.0 (perhaps in a release between 2.7 and 3.0), a section or topic name could be "blank" by unchecking the "use default section name" box and typing a space into the Section name field. Since upgrading from 2.7 to 3.0 we can no longer enter just a space. An error "Required" displays when a space is entered.

      To replicate:
      1. Create a new Topics format course in Moodle 3.0.2
      2. Once course is created (either enrol or don't enrol users/teachers, etc., turn editing on.
      3. Click Edit settings for one of the topics/sections in the course.
      4. Uncheck the "use default section name" box.
      5. Type a space in the section name box.
      6. Click Save changes - the error "Required" displays because the section name can't be blank, even a space doesn't count as text.

      This is possibly also related to MDL-35743 that is still unresolved but the workaround was to leave the section name blank - which can no longer be done.

            jpataleta Jun Pataleta
            lhemeon Leah Hemeon
            Adrian Greeve Adrian Greeve
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Simey Lameze Simey Lameze
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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