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

Default parent for adding new grade category inconsistent

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.4, 2.3.1
    • Fix Version/s: 2.2.5, 2.3.2
    • Component/s: Gradebook
    • Labels:
    • Database:
      PostgreSQL
    • Testing Instructions:
      Hide

      In postgres and mysql

      1. Create a course
      2. Go into gradebook->full view
      3. Click add category
      4. Add a Category
      5. Click add category again
      6. At the bottom dropdown, the course grade category should be default, NOT the one you added manually.
      Show
      In postgres and mysql Create a course Go into gradebook->full view Click add category Add a Category Click add category again At the bottom dropdown, the course grade category should be default, NOT the one you added manually.
    • Affected Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE
    • Pull Master Branch:

      Description

      When in the Gradebook 'Full View', when you click Add Category, the behaviour can be inconsistent depending on your database. It defaults to whatever the top category is, but the categories are returned in DB order (unordered). In MySQL this will generally mean that the course category will be first, but in Postgres, order is not 'known', and in our case it means the most recently added category is at top.

        Attachments

          Activity

            People

            Assignee:
            emerrill Eric Merrill
            Reporter:
            emerrill Eric Merrill
            Peer reviewer:
            Andrew Davis
            Integrator:
            Eloy Lafuente (stronk7)
            Tester:
            Eloy Lafuente (stronk7)
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              10/Sep/12