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

Cannot have a ressource/activity named '0' (zero)

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Create a gradeable activity and call it "0"
      2. Try to rename it them from/to the name "0" using both edit form and quick name edit
      3. Try indenting, hiding, etc.
      4. Make sure it appears in gradebook
      5. Make sure it appears in recent activity block and "full report" linked from it
      6. Delete it
      7. Try something else - different activity types, rated activities, etc., maybe you hit some other case that I missed
      Show
      Create a gradeable activity and call it "0" Try to rename it them from/to the name "0" using both edit form and quick name edit Try indenting, hiding, etc. Make sure it appears in gradebook Make sure it appears in recent activity block and "full report" linked from it Delete it Try something else - different activity types, rated activities, etc., maybe you hit some other case that I missed
    • Affected Branches:
      MOODLE_28_STABLE, MOODLE_29_STABLE, MOODLE_30_STABLE
    • Fixed Branches:
      MOODLE_28_STABLE, MOODLE_29_STABLE
    • Pull Master Branch:
      MDL-50892-master

      Description

      Naming an activity or ressource '0' (zero) causes an error. Here's the error log. I found the bug on Moodle 3.0

      Debug info:
      Error code: invalidcoursemodule

      Stack trace:
      line 230 of /lib/modinfolib.php: moodle_exception thrown
      line 2504 of /lib/moodlelib.php: call to course_modinfo->get_cm()
      line 39 of /mod/survey/view.php: call to require_login()

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              marina Marina Glancy
              Reporter:
              2018D David Truong
              Peer reviewer:
              Eric Merrill
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              Adrian Greeve
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                9/Nov/15