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

Notice from the calculated simple validation code

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.6.1
    • 2.6.2
    • 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.)

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              timhunt Tim Hunt
              timhunt Tim Hunt
              Dan Poltawski Dan Poltawski
              Damyon Wiese Damyon Wiese
              Andrew Lyons Andrew Lyons
              Tim Hunt, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                10/Mar/14