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

Ensure empty section names are saved as NULL in database

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.1
    • Fix Version/s: None
    • Component/s: Course
    • Labels:
    • Affected Branches:
      MOODLE_31_STABLE

      Description

      This is a followup of MDL-53071.

      1) For MOODLE_30_STABLE and earlier, empty section names are being stored as NULL in the database. That null means "use default name".

      2) In MDL-53071 it was detected that for master (3.1.dev) we have changed that behavior to store empty strings instead. Both when using the form and also when performing inline section name edition.

      So this issue is about:

      A) Move back, in master, to store NULLs in database. It's not really super-critical, but better if we keep the historic meaning there. Both using the form and inline editing.

      B) Ideally cover with some tests all these cases (1-space, empty, zero...), so we keep them constant over the time (in fact MDL-53071 was a regression).

      That's it, ciao

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                7 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated: