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

Imported GIFT questions: change default answernumbering format

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.5.3
    • Fix Version/s: None
    • Component/s: Questions
    • Labels:
    • Testing Instructions:
      Hide
      1. Log in as an admin user
      2. Go to site admin > plugins > question types > multiple choice
      3. Set 'answernumbering' setting to '1., 2., 3., ...')
      4. Go to a course
      5. Expand course admin menu (top right hand cog icon) and select "More...", follow 'Questions' link in the following page
      6. Add a 'Multiple choice' question with 3 different choices
      7. Back in the question bank, follow 'Export' tab link
      8. Select GIFT format and include the questions category that contains the question you just added
      9. Go to site admin > plugins > question types > multiple choice
      10. Set 'answernumbering' setting to 'i.,ii.,iii., ...')
      11. Go to another course
      12. Expand course admin menu (top right hand cog icon) and select "More...", follow 'Question bank -> Import' link in the following page
      13. Select GIFT format and upload the exported file
      14. Edit the multichoice question you created
      15. Check 'Number the choices?' field, its value SHOULD be ' 'i.,ii.,iii., ...'
      Show
      Log in as an admin user Go to site admin > plugins > question types > multiple choice Set 'answernumbering' setting to '1., 2., 3., ...') Go to a course Expand course admin menu (top right hand cog icon) and select "More...", follow 'Questions' link in the following page Add a 'Multiple choice' question with 3 different choices Back in the question bank, follow 'Export' tab link Select GIFT format and include the questions category that contains the question you just added Go to site admin > plugins > question types > multiple choice Set 'answernumbering' setting to 'i.,ii.,iii., ...') Go to another course Expand course admin menu (top right hand cog icon) and select "More...", follow 'Question bank -> Import' link in the following page Select GIFT format and upload the exported file Edit the multichoice question you created Check 'Number the choices?' field, its value SHOULD be ' 'i.,ii.,iii., ...'
    • Affected Branches:
      MOODLE_35_STABLE

      Description

      For newly created questions, admin users can change the default answernumbering (to e.g.'none') using the form

      moodle/admin/settings.php?section=qtypesettingmultichoice

      This, however, does not affect file 

      moodle/question/format.php, line 712,  [$question->answernumbering = 'abc' ],

      which sets the format for imported GIFT questions.

      To change $question->answernumbering value to e.g. 'none', one has to edit the file directly.

       

      Request: alter

      moodle/question/format.php, line 712

      in response to changes made via the

      moodle/admin/settings.php?section=qtypesettingmultichoice form.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tdindorf Tom Dindorf
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: