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

Numerical question type gives a Warning when a unit is required, but not entered

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.1.3
    • 2.1.2, 2.2
    • Questions
    • MOODLE_21_STABLE, MOODLE_22_STABLE
    • MOODLE_21_STABLE
    • Hide

      1. Follow the steps to reproduce in the Description. Verify that after this fix, there is no Warning.

      2. Run all the unit tests in /question.

      Show
      1. Follow the steps to reproduce in the Description. Verify that after this fix, there is no Warning. 2. Run all the unit tests in /question.

      1. Create a numerical question set to "The unit must be given, and will be graded", "the text input element", and enter some units.

      2. Preview the question. Type a response without a unit.

      3. There is a notice "Warning: array_key_exists() [function.array-key-exists]: The first argument should be either a string or an integer in /fs1/www_root/icmatest/vle/question/type/numerical/questiontype.php on line 698"

            timhunt Tim Hunt
            timhunt Tim Hunt
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Ankit Agarwal Ankit Agarwal
            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.