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

Notice from the calculated simple validation code

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.6.2
    • 2.6.1
    • Questions
    • MOODLE_26_STABLE
    • MOODLE_26_STABLE
    • Hide
      1. Go to the question bank, and click to create a new Simple calculated question.
      2. Type anything in the two required fields (Question name and Question text).
      3. Click Save changes without first clicking "Find the wild cards {x..}

        present in the correct answer formulas"

      4. Verify that there are no notices. (The form validation will tell you you have not done the right thing.)
      Show
      Go to the question bank, and click to create a new Simple calculated question. Type anything in the two required fields (Question name and Question text). Click Save changes without first clicking "Find the wild cards {x..} present in the correct answer formulas" Verify that there are no notices. (The form validation will tell you you have not done the right thing.)

      Steps to reproduce:

      1. Go to the question bank, and click to create a new Calculated simple question.
      2. Put something in the required fields (Question name and question text).
      3. Click Save changes without first clicking "Find the wild cards {x..}

        present in the correct answer formulas"

      and you get the notices:

      Notice: Undefined index: number in /home/marina/repositories/int_master/moodle/question/type/calculatedsimple/edit_calculatedsimple_form.php on line 588

      Warning: Invalid argument supplied for foreach() in /home/marina/repositories/int_master/moodle/question/type/calculatedsimple/edit_calculatedsimple_form.php on line 589

            timhunt Tim Hunt
            timhunt Tim Hunt
            Dan Poltawski Dan Poltawski
            Damyon Wiese Damyon Wiese
            Andrew Lyons Andrew Lyons
            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.