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

You cannot remove the default "General" section name of section-0 once Custom has been checked

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • None
    • 3.9.10, 3.10.7, 3.11.3, 4.0
    • Course
    • None
    • MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
    • Hide

      Since for as long as I have been working with Moodle (2.5), the workaround has been to put a single space in the Section Name field to have it disappear as many do.

      This is not ideal for the following reasons:

      • From an accessibility since you now have a heading with just a space in it. Not only that, it's a link!
      • It doesn't even look good visually because even a space in a heading takes up a line and pushes the content down.
      • The Navigation drawer now has an link that is just an icon with no label (initially, this did not appear in the nav drawer).
      • Course backups fail (I first noticed this in 3.11.3+ but it have started before that).

      This workaround no longer works. As suggested in MDL-72685, the workaround is now to use   instead of a single space. But that means going back and fixing all of our courses where this problem is now occurring. And it does not solve the problem in the nav drawer.

      The alternative is to put meaningful text as the heading label which is often not the desired outcome.

      Show
      Since for as long as I have been working with Moodle (2.5), the workaround has been to put a single space in the Section Name field to have it disappear as many do. This is not ideal for the following reasons: From an accessibility since you now have a heading with just a space in it. Not only that, it's a link! It doesn't even look good visually because even a space in a heading takes up a line and pushes the content down. The Navigation drawer now has an link that is just an icon with no label (initially, this did not appear in the nav drawer). Course backups fail (I first noticed this in 3.11.3+ but it have started before that). This workaround no longer works. As suggested in MDL-72685 , the workaround is now to use   instead of a single space. But that means going back and fixing all of our courses where this problem is now occurring. And it does not solve the problem in the nav drawer. The alternative is to put meaningful text as the heading label which is often not the desired outcome.

      When you first create a new course, section-0 (the default section) has no heading. This is often the desired outcome. However, if you go and change it and then change your mind, you can never revert back to the way it was originally. Instead, Moodle will now insert a heading called General which is rarely the desired effect. If I wanted the section name to be "General", don't you think that I would have set it to this myself?

      Here is how to reproduce the issue (up to Moodle 3.11):

      1. Create a new course. You don't need to add anything to the course except a long and short name, and set the Course Format to Topic. Save.
      2. Notice that there is no label for the General section. It does not even take up any space. It is just not there. Desired result has been achieved!
      3. Turn editing on
      4. For the General  section (also known as section-0), click Edit > Edit Section.
      5. Check the "Custom" checkbox.
      6. Set the section name to "Introduction"
      7. Click the Save Changes button.
      8. Section-0 now has a heading that says "Introduction" (assuming that your Moodle is in English). Now lets say you changed your mind and you think it looked better before.
      9. For the Introduction section, click Edit > Edit Section.
      10. Uncheck the "Custom" checkbox.
      11. Click the Save Changes button.
      12. Now the section is called "General"

      This is not the desired outcome and there seems to be no way to go back to having no heading for section-0.

      If you uncheck the Custom checkbox for the Section Name, Moodle should go back to its original behaviour of not displaying any heading for this section, as it was when you first created the course.

      In Moodle 4.0 Alpha, things are a little different. Even when you first create a course, the default section name is General right from the start.

      There should be a way to turn off the heading for section-0.

            Unassigned Unassigned
            michael-milette Michael Milette
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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