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

Must be possible to create a question category with idnumber 0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.6.7, 3.7.3
    • 3.6.6, 3.7.2
    • Questions
    • MOODLE_36_STABLE, MOODLE_37_STABLE
    • MOODLE_36_STABLE, MOODLE_37_STABLE
    • Hide
      1. Create a new coures.
      2. Go to Qusetion bank -> Categories
      3. Create a new category, with idnumber '0' (that is, a single digit zero).
      4. Verify (e.g. by looking in the database, or by having the fix for MDL-66553, or by re-editing) that the idnumber was saved.
      5. Delete that new category.
      6. Now edit the category "Default for [_test course shortname_]" and try to set the idnumber to 0.
      7. Verify that the idnumber was saved.
      8. Edit the same category and without making any changes, save.
      9. Verify the id number is still 0
      10. Now, edit the same category and change the 0 to 123 and save.
      11. Verify the id number was saved and is now 123
      12. Edit the same category and without making any changes, save.
      13. Verify the id number is still 123
      14. Now, edit the category again, but this time clear the id number field and save.
      15. Confirm the id number has now been unset and is empty.
      Show
      Create a new coures. Go to Qusetion bank -> Categories Create a new category, with idnumber '0' (that is, a single digit zero). Verify (e.g. by looking in the database, or by having the fix for MDL-66553 , or by re-editing) that the idnumber was saved. Delete that new category. Now edit the category "Default for [_test course shortname_] " and try to set the idnumber to 0. Verify that the idnumber was saved. Edit the same category and without making any changes, save. Verify the id number is still 0 Now, edit the same category and change the 0 to 123 and save. Verify the id number was saved and is now 123 Edit the same category and without making any changes, save. Verify the id number is still 123 Now, edit the category again, but this time clear the id number field and save. Confirm the id number has now been unset and is empty.

      It may not be the most useful thing, bit '0' is a valid idnumber for a question category.

      There is a bug that prevents you setting that. This fixes it.

            timhunt Tim Hunt
            timhunt Tim Hunt
            Mahmoud Kassaei Mahmoud Kassaei
            Jake Dallimore Jake Dallimore
            Janelle Barcega Janelle Barcega
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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