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

Intelligent default idnumber when duplicating a question in the question bank

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.8.1, 3.8.2
    • Fix Version/s: 3.9
    • Component/s: Questions
    • Testing Instructions:
      Hide
      1. As teacher, go to the question bank in any course.
      2. Create a question with ID number 'frog'. (The type does not matter, but True/false questions are quickest to create.)
      3. Select the Duplicate action in the edit menu for that question.
      4. Verify that when the form loads, the ID number field is blank.
      5. Now create a question with ID number Q08.
      6. Select the Duplicate action in the edit menu for that question.
      7. Verify that when the form loads, the ID number field is pre-filled with Q09.
      8. Save the form (so now you have questions with idnumbers Q08 and Q09).
      9. Select the Duplicate action on Q08 again.
      10. Verify that when the form loads, the ID number field is pre-filled with Q10.
      Show
      As teacher, go to the question bank in any course. Create a question with ID number 'frog'. (The type does not matter, but True/false questions are quickest to create.) Select the Duplicate action in the edit menu for that question. Verify that when the form loads, the ID number field is blank. Now create a question with ID number Q08. Select the Duplicate action in the edit menu for that question. Verify that when the form loads, the ID number field is pre-filled with Q09. Save the form (so now you have questions with idnumbers Q08 and Q09). Select the Duplicate action on Q08 again. Verify that when the form loads, the ID number field is pre-filled with Q10.
    • Affected Branches:
      MOODLE_38_STABLE
    • Fixed Branches:
      MOODLE_39_STABLE
    • Pull Master Branch:

      Description

      Has been requested by Open University staff.

      If you have a question in the question bank with an ID number like idnum0003, and if choose the question bank action to duplicate it, then the new question should have the ID number field on the editing form pre-filled with idnum0004 (where that is the next unused id of that format).

      (Currently, the ID number just defaults to blank.)

        Attachments

        1. MDL-67934_Step10.jpg
          MDL-67934_Step10.jpg
          27 kB
        2. MDL-67934_Step4.jpg
          MDL-67934_Step4.jpg
          25 kB
        3. MDL-67934_Step7.jpg
          MDL-67934_Step7.jpg
          25 kB

          Issue Links

            Activity

              People

              Assignee:
              timhunt Tim Hunt
              Reporter:
              timhunt Tim Hunt
              Peer reviewer:
              Mahmoud Kassaei
              Integrator:
              Jake Dallimore
              Tester:
              Anna Carissa Sadia
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                15/Jun/20

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 20 minutes
                  1h 20m