From c02c2a80d7090f7cca6dcd4e236283b88ea29a42 Mon Sep 17 00:00:00 2001 From: satyans24 Date: Mon, 23 Jul 2012 11:59:58 +0530 Subject: [PATCH] fix the search for the cases where user search with email address like : no-reply@tigers-connect.com --- helpdesk/views/staff.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpdesk/views/staff.py b/helpdesk/views/staff.py index 31b4766f..8f5e2e24 100644 --- a/helpdesk/views/staff.py +++ b/helpdesk/views/staff.py @@ -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