fix the search for the cases where user search with email address like : no-reply@tigers-connect.com

This commit is contained in:
satyans24 2012-07-23 11:59:58 +05:30
parent 5640e8490c
commit c02c2a80d7

View File

@ -585,8 +585,8 @@ def ticket_list(request):
query = request.GET.get('q')
filter = None
if query.find('-') > 0:
queue, id = query.split('-')
try:
queue, id = query.split('-')
id = int(id)
except ValueError:
id = None