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

edit numercial options are not tested correctly before setting the defaults when editing a question with no answer

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.0.1
    • 2.0
    • Questions
    • None
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE

      When there is no answer in a question using the numerical options (numerical, calculated ...) the function get_question_options(&$question) return without setting default values for numerical options.

      When editing the question, the code setting the default_values
      if (isset($question->options)){
      $default_values['unitgradingtypes'] = 1 ;

      should be replaced by
      if (isset($question->options->unitgradingtypes)){
      $default_values['unitgradingtypes'] = 1 ;
      and so on...

            ppichet Pierre Pichet (Inactive)
            ppichet Pierre Pichet (Inactive)
            Nobody Nobody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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