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

Must be possible to create a question category with idnumber 0

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.6.6, 3.7.2
    • Fix Version/s: 3.6.7, 3.7.3
    • Component/s: Questions
    • Labels:
    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_36_STABLE, MOODLE_37_STABLE
    • Fixed Branches:
      MOODLE_36_STABLE, MOODLE_37_STABLE
    • Pull from Repository:
    • Pull 3.6 Branch:
    • Pull 3.7 Branch:
    • Pull Master Branch:

      Description

      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.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/Nov/19

                Time Tracking

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