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

Calculated question should handle more than one unit with a value of 1

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 2.3.2
    • Questions
    • None
    • MOODLE_23_STABLE

      in calculated/questiontype.php line 1049
      // Find a default unit:
      if (!empty($questionid) && $unit = $DB->get_record('question_numerical_units',
      array('question' => $questionid, 'multiplier' => 1.0)))

      { $unit = $unit->unit; }

      else

      { $unit = ''; }

      should be corrected to handle the more than one record with a multiplier value == 1,0.
      see http://moodle.org/mod/forum/discuss.php?d=211619

            timhunt Tim Hunt
            ppichet Pierre Pichet
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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