From 76835df02b3897c1e78b647df74d40cafced74c3 Mon Sep 17 00:00:00 2001 From: hernani Date: Tue, 15 Feb 2011 12:23:16 +0000 Subject: [PATCH] fixes a nasty bug causing a view to never return a response under certain circumstances git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@767 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- forum/views/readers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forum/views/readers.py b/forum/views/readers.py index f8113be..80709e7 100644 --- a/forum/views/readers.py +++ b/forum/views/readers.py @@ -192,7 +192,7 @@ def search(request): return HttpResponseRedirect(reverse('tags') + '?q=%s' % urlquote(keywords.strip())) elif search_type == "user": return HttpResponseRedirect(reverse('users') + '?q=%s' % urlquote(keywords.strip())) - elif search_type == "question": + else: return question_search(request, keywords) else: return render_to_response("search.html", context_instance=RequestContext(request)) -- 2.39.5