Master #bug9460

Hi Martin,

I have done this. I also added test file for testing TicketSearch() by CustomerIDRaw.
I added only parameter CustomerIDRaw, not CustomerLoginRaw. When I tested TicketSearch with CustomerUserLogin I did not have problem with this one. I believe this fix will be enough. 
What do you think about this?

If you think it is necessary, I will be able also to add CustomerLoginRaw.

Regards
Zoran

Hi Martin,
This part of code I add because it is necessary for links to tickets (Escalated tickets,Open tickets,Closed tickets,All tickets) in sidebar in CIC. Maybe we could fix that on different way, but we have to solve this problem.