When users of the ticketing system try to use the search feature to search by ticket number one of two things happen, they will either get no results returned or they will get every ticket returned.  When they try to search by subject all tickets are returned regardless of whether the subject contains the searched word or not.This only effects users of the system and not the agents.  The agents search feature works fine.We are using version 1.10, the latest stable release.Our ticket numbering uses the following format DEF/#####Is this a problem others have encountered and if so how hard is it to rectify?Thanks in advance, any help would be greatly appreciated.

20 days later

Anybody find the fix for this?

It's my understanding that using ticket prefixes is the problem and if you remove that and just use the number portion you might have better luck.

There is a code fix for a problem with searching from the client page which may fix this.There is an issue for this here: https://github.com/osTicket/osTicket/issues/3822

@[deleted]Searching record by numeric on client is not working. But it worked if they have string on it. For example AR00025. I have a record with number, for example 70. Search 70 give me 0 result.@[deleted]I already did that but It's not working for numeric value.

Ok, just testing further now and I'm not able to search on my ticket IDs either.I wonder if there is something like a minimum size of text search for, it seems like it is 3 digits for words ?For example, I'm able to search for "fred" but not "fre".

Judging by the code it will look for numbers only in the ticket number and it must be 2 or more numbers and then the ticket number must start with the number sequence that you've typed it can't just contain it.So to conclude you can't have leading characters in the ticket number if you want to search for them or you'd have modify core, for example replacing startswith with containshttps://github.com/osTicket/osTicket/blob/develop/include/ajax.tickets.php#L61 - 2+ characters, numbershttps://github.com/osTicket/osTicket/blob/develop/include/ajax.tickets.php#L69 - Starts with

Write a Reply...