Advanced Search Doesn't Work

1) Can't find tickets assigned to one person

It looks like the staffId is being passed as '0': tickets.php?a=search&query=&status=&deptId=&assignee=s8&staffId=0&topicId=&startDate=&endDate=

If I manually set staffId to the same value as assignee, it seems to almost work. In one instance, I tried the trick above, and I know one staff member has a ticket assigned to them, but it still returns no results...

2) Cant find tickets closed by one person

I don't even see how I would fix this query based on this string:

tickets.php?a=search&query=&status=&deptId=&assignee=&staffId=5&topicId=&startDate=&endDate=

Here's a sample.

user/pass: admin/admin:

Advance Search for tickets assigned to 'Chou, Aries' results in:

http://www.ostickethacks.com/demo/scp/tickets.php?a=search&query=&status=&deptId=&assignee=s11&staffId=0&topicId=&startDate=&endDate=(http://www.ostickethacks.com/demo/scp/tickets.php?a=search&query=&status=&deptId=&assignee=s11&staffId=0&topicId=&startDate=&endDate=)

You can see that it's wrong.

This looks more correct when I modify staffId to be the same as assignee, but still, this kind of modification isn't perfect as I mentioned in my previous post: http://www.ostickethacks.com/demo/scp/tickets.php?a=search&query=&status=&deptId=&assignee=s11&staffId=s11&topicId=&startDate=&endDate=(http://www.ostickethacks.com/demo/scp/tickets.php?a=search&query=&status=&deptId=&assignee=s11&staffId=s11&topicId=&startDate=&endDate=)

21 days later

Just checking back in to see if there's any movement. Or am I crazy and advanced search works for everyone else?

Just checking back in to see if there's any movement. Or am I crazy and advanced search works for everyone else?

Here, the advanced search works without problems...

2 months later

Advanced search failed - try again!

I have some problem,

but when i install osticket on other PC (use apache), advance search is work.

But on my PC (use nginx), advance search is not work.

My Question,

Whether osticket is only used for the apache?

or are there other settings to nginx?

Thanx,

April :

This is my picture for error of advanced search

search.jpg

search2.jpg

4 months later

I'm looking at the code and there are definitely some cases not handled by search.  A quick look at __search in TicketAjaxAPI reveals a definite bug.Line 144 condition requires $req to be equal to 'closed' but inside of that block there's a check for !$req.  Clearly this logic doesn't work and there are many missing conditions for searching by assignee.

Write a Reply...