chamilo-lms icon indicating copy to clipboard operation
chamilo-lms copied to clipboard

User tool: teacher tab switches back to student tab on clicking next page

Open jderriks opened this issue 10 years ago • 7 comments

userlist_issue_chamilo

When there are more than 20 teachers in a course and you want to find one or move to the next page, the view switches back to the student list.

Tested on https://1.10.chamilo.org/main/user/user.php?cidReq=TEST123

Edit: if I select "ALL" in the page-count-dropdown, the view switches to.. the campus mainpage?

jderriks avatar Aug 18 '16 14:08 jderriks

You should be able to fix that with the one-line fix I just sent (see links above)

ywarnier avatar Aug 18 '16 19:08 ywarnier

Almost works. Selecting "ALL" instead of 20 still crashes the tool and gives me the campus starting page.

jderriks avatar Aug 18 '16 20:08 jderriks

This should be OK now (with the last patch sent). I'm hesitating to send this to 1.10.x because not sure if it might have an additional impact and I don't have much time to try it out, but given it's a one-liner you should be able to apply it easily to 1.10.8 or so.

ywarnier avatar Aug 19 '16 19:08 ywarnier

Cordial Saludo

Buenas tardes se realizo la prueba en la versión 1.10.6 y no me funciono , le doy en que me liste todos los estudiante y me manda a la pagina principal.

fergimon avatar Aug 23 '16 19:08 fergimon

@jderriks, does this work for you now?

ywarnier avatar Oct 10 '16 00:10 ywarnier

Seems OK in 1.11 except for a small bug (or feature?): the page number last seen seems to be stored during the session. This means that when you see users page "21 - 40 / 200" and you move away to another tool or course and then return to the user list, it will not start at the first item but at the page last seen of that course. That is not intuitive.

jderriks avatar Oct 10 '16 17:10 jderriks

Yeah... that's a feature (until proven otherwise :-))

ywarnier avatar Oct 10 '16 20:10 ywarnier