From: hernani Date: Tue, 15 Feb 2011 12:23:16 +0000 (+0000) Subject: fixes a nasty bug causing a view to never return a response under certain circumstances X-Git-Tag: live~448 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/76835df02b3897c1e78b647df74d40cafced74c3?ds=sidebyside 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 --- 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))