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

Make question_type::save_hints more suitable for child classes

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.5.1
    • 2.5
    • Questions
    • MOODLE_25_STABLE
    • MOODLE_25_STABLE
    • MDL-40013_master
    • Hide

      1. Create a question without parts (shortanswer for example), enter several hints and save it.
      2. Re-open created question for editing and make sure all hints was correctly saved.
      3. Create a question with parts (match for example), enter several hints and check several hint options. In last hint don't write text, just check hint options.
      4. Re-open created question for editing and make sure all hints was correctly saved.

      Show
      1. Create a question without parts (shortanswer for example), enter several hints and save it. 2. Re-open created question for editing and make sure all hints was correctly saved. 3. Create a question with parts (match for example), enter several hints and check several hint options. In last hint don't write text, just check hint options. 4. Re-open created question for editing and make sure all hints was correctly saved.

      Overloading of save_hints() method involves duplicating many strings of code.

      This could be avoided by adding 3 methods, called from it, designed for overloading.

            oa_sychev Oleg Sychev
            oa_sychev Oleg Sychev
            Tim Hunt Tim Hunt
            Dan Poltawski Dan Poltawski
            Adrian Greeve Adrian Greeve
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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