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

A negative and positive weight results in bad result

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.8
    • Fix Version/s: 2.8
    • Component/s: Gradebook
    • Labels:
    • Testing Instructions:
      Hide
      1. Follow the steps in the description and make sure that the total is 100 and not 109.091.

      Test 2:

      1. Run behat --name "Overriding a grade item with a negative value results in the value being changed to zero."
      Show
      Follow the steps in the description and make sure that the total is 100 and not 109.091. Test 2: Run behat --name "Overriding a grade item with a negative value results in the value being changed to zero."
    • Affected Branches:
      MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_28_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      wip-MDL-47676-master

      Description

      This wasn't really fixed properly in MDL-46819, but I decided to create a new issue sot hat I could release..

      1. Create a course with two assignments
      2. Go to the gradebook.
      3. Make sure that the aggregation is set to Natural.
      4. Set the weight of the first assignemnt to -10
      5. Set the weight of the second assignment to 120

      Observer that the weight end up as 0 and 109.091 and not adjusted to total 100 as the message says.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              abgreeve Adrian Greeve
              Reporter:
              poltawski Dan Poltawski
              Peer reviewer:
              Andrew Nicols
              Integrator:
              Dan Poltawski
              Tester:
              Simey Lameze
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/Nov/14