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

Backup fails if section name has only blank spaces

XMLWordPrintable

    • MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_400_STABLE
    • MOODLE_310_STABLE, MOODLE_311_STABLE
    • Hide
      1. Create a course
      2. Edit any section.
      3. Check the "custom" checkbox and add FIVE blank spaces as the name.
      4. Save.
      5. Go to course backup page.
      6. Verify that no errors happen.
      7. Verify that you see the edited section empty (without any label).
      8. Complete the backup without problems.
      9. Restore the just created backup. Advance till the sections are activities are shown.
      10. Verify that no errors happen.
      11. Verify that you see the edited section empty (without any label).
      12. Complete the restore without problems.
      13. Edit the "empty" section in the restored course.
      14. Verify that it contains the same FIVE blank spaces introduced originally in step #3.
      Show
      Create a course Edit any section. Check the "custom" checkbox and add FIVE blank spaces as the name. Save. Go to course backup page. Verify that no errors happen. Verify that you see the edited section empty (without any label). Complete the backup without problems. Restore the just created backup. Advance till the sections are activities are shown. Verify that no errors happen. Verify that you see the edited section empty (without any label). Complete the restore without problems. Edit the "empty" section in the restored course. Verify that it contains the same FIVE blank spaces introduced originally in step #3.

      This was introduced by MDL-71093

      We must use PARAM_CLEAN instead of PARAM_CLEANHTML

        1. 2022-01-30_15-50.png
          2022-01-30_15-50.png
          37 kB
        2. MDL-72762_master.webm
          3.11 MB
        3. MDL-72762_v310.webm
          3.04 MB
        4. MDL-72762_v311.webm
          2.48 MB

            stronk7 Eloy Lafuente (stronk7)
            danielneis Daniel Neis Araujo
            Andrew Lyons Andrew Lyons
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Angelia Dela Cruz Angelia Dela Cruz
            Votes:
            32 Vote for this issue
            Watchers:
            43 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 16 minutes
                2h 16m

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