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

Notice when adding id numbers to calculation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.3.2, 2.3.6
    • Fix Version/s: 2.3.8, 2.4.5
    • Component/s: Gradebook
    • Labels:
    • Testing Instructions:
      Hide

      Youll need a course with at least one existing grade item in it.

      Go to the gradebook to the categories and items screen. Add a new grade item (theres a button beneath the categories and items table).

      Once its created click the calculator icon in the new grade item's row.

      In the ID Numbers section enter some names for the existing grade items. For example, firstitem and otherassignment. Check that they save without error.

      Enter a formula using the ID numbers. for example =[[firstitem]]+[[otherassignment]]

      Check that it saves without error. It will complain about an invalid formula if it's not correct.

      Show
      Youll need a course with at least one existing grade item in it. Go to the gradebook to the categories and items screen. Add a new grade item (theres a button beneath the categories and items table). Once its created click the calculator icon in the new grade item's row. In the ID Numbers section enter some names for the existing grade items. For example, firstitem and otherassignment. Check that they save without error. Enter a formula using the ID numbers. for example =[ [firstitem] ]+[ [otherassignment] ] Check that it saves without error. It will complain about an invalid formula if it's not correct.
    • Affected Branches:
      MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE

      Description

      When adding ID numbers to calculation, it throws a notice in developer mode.

      Invalid array parameter detected in required_param(): idnumbers
      line 605 of /lib/moodlelib.php: call to debugging()
      line 33 of /grade/edit/tree/calculation.php: call to optional_param()

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              andyjdavis Andrew Davis
              Reporter:
              t6nis20 Tõnis Tartes
              Peer reviewer:
              Adrian Greeve
              Integrator:
              Dan Poltawski
              Tester:
              Rajesh Taneja
              Participants:
              Component watchers:
              Jake Dallimore, Jun Pataleta
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                8/Jul/13