Skip to content
Snippets Groups Projects
Commit 5377e30a authored by Jan Mach's avatar Jan Mach
Browse files

Fix: Fixed bug possibly leading to HTTP 500 error.

(Redmine issue: #3443)
parent 7dc2ba09
No related branches found
No related tags found
No related merge requests found
......@@ -652,7 +652,7 @@ class HawatSearchView(HawatDbmodelView):
"""
params = {}
for arg in request_args:
if getattr(form, arg) and arg in request_args:
if getattr(form, arg, None) and arg in request_args:
params[arg] = request_args[arg]
return params
......
......@@ -106,7 +106,7 @@ class SearchView(hawat.base.HawatRenderableView):
"""
params = {}
for arg in request_args:
if getattr(form, arg) and request_args.get(arg, None):
if getattr(form, arg, None) and request_args.get(arg, None):
params[arg] = request_args[arg]
return params
......
......@@ -293,6 +293,7 @@ class ShowView(hawat.base.HawatItemShowView):
statistics = mentat.stats.idea.calculate_secondary_stats(item.statistics)
)
class UnauthShowView(ShowView):
"""
Unauthorized access to report detail view.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment