OTRS/otrs — pull request #152 by reneeb (2014-05-16 02:20:45+00:00)
Title: Avoid unnecessary SQL queries in UserList

All needed information were already available, but weren't used. Instead UserName() was called that calls GetUserData() that calls other methods and so on. That led to many unnecessary SQL queries which can be quite slow with large user lists.

I also added some tests to ensure that the new methods work.