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

Notice from the calculated simple validation code

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6.1
    • Fix Version/s: 2.6.2
    • Component/s: Questions
    • Labels:
    • Testing Instructions:
      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.)
    • Affected Branches:
      MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      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

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  10/Mar/14