Moodle

First user in user select in gradebook user report is always missing

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 2.0
  • Fix Version/s: 2.0
  • Component/s: Gradebook
  • Labels:
    None
  • Difficulty:
    Easy
  • Affected Branches:
    MOODLE_20_STABLE
  • Fixed Branches:
    MOODLE_20_STABLE

Description

I noticed that although I had 35 students in a course the user select box in gradebook user report only had 34 users.

To see this issue simply browse to any course with at least one student, take note of the number of students and then view the user report for that course.
You will notice that there is one less student shown in the drop down in the top right than there are actual students.

This issue seems to have popped up only in HEAD as the line that causes the problem isn't in 19.
I have attached a patch that I believe fixes this very minor bug if somebody could please review this for me that would be most appreciated.

Activity

Hide
Martin Dougiamas added a comment -

That seems to make sense to me! +1

Andrew, can you check this out and check it in?

Show
Martin Dougiamas added a comment - That seems to make sense to me! +1 Andrew, can you check this out and check it in?
Hide
Andrew Davis added a comment -

checked out and checked in.

Show
Andrew Davis added a comment - checked out and checked in.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: