Show alphabet filter in grader report regardless of number of student

Show alphabet filter in grader report regardless of number of student

por Nic Duke -
Número de respostas: 4

This is related to tracker - https://tracker.moodle.org/browse/MDL-48610

The alphabet filter at the top of the grader report page is very useful. However, it only appears when the list of students spans across two pages; if all students are able to fit on one page (e.g. if you set assignments per page to 100 and there are only 90 students to show) then the user is unable to benefit from alphabet filter.

Is anyone able to suggest a patch for this please?

Em resposta a 'Nic Duke'

Re: Show alphabet filter in grader report regardless of number of student

por Tim Hunt -
Foto de Core developers Foto de Documentation writers Foto de Particularly helpful Moodlers Foto de Peer reviewers Foto de Plugin developers
You need to be looking in lib/tablelib.php. Search in there for 'initial' to see all the relevant code.

If you are interested, you can try to work it out for yourself. If you want a spoiler:

https://github.com/moodle/moodle/blob/8f06fffbe117b91bc0c36c78a25210c994fb0a20/lib/tablelib.php#L1444

Change

$this->initialbars($grandtotal > $pagesize);

to

$this->initialbars(true);
Em resposta a 'Nic Duke'

Re: Show alphabet filter in grader report regardless of number of student

por Nic Duke -

I have been advised to ask forums users to vote for this fix on the open tracker (https://tracker.moodle.org/browse/MDL-48610). If this suggestion becomes popular then they will integrate it. T