]> git.openstreetmap.org Git - osqa.git/commitdiff
fixes a nasty bug causing a view to never return a response under certain circumstances
authorhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Tue, 15 Feb 2011 12:23:16 +0000 (12:23 +0000)
committerhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Tue, 15 Feb 2011 12:23:16 +0000 (12:23 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@767 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/views/readers.py

index f8113be2f6da4e091d9fc8ad39830794bfbafa4e..80709e72059b5a54a28ed854051fd8ccb34b4fa5 100644 (file)
@@ -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))