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

Error duplicating a question with idnumber 1.0E+29

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.9
    • 3.9
    • Questions

      This is a regression caused by MDL-67934, and I am currently sitting in awe of our tester.

      1. Create a question with idnumber '1.0E+29'
      2. Click duplicate.
      3. Click Save changes.

      Actual result: Debug info: ERROR: duplicate key value violates unique constraint "q_ques_catidn_uix"
      DETAIL: Key (category, idnumber)=(1, 1.0E+29) already exists.

      Expected result: at step 2) the suggested idnumber for the duplicate question should be '1.0E+30' - idnumbers are strings, and we increment the final number-like part of it, if possible. This is not a float.

            timhunt Tim Hunt
            timhunt Tim Hunt
            Mahmoud Kassaei Mahmoud Kassaei
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 20 minutes
                20m

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