Update compatability with bookmarked searches
- Legacy-Id: 491
This commit is contained in:
parent
a93b927f7a
commit
91fe8ea9c2
|
@ -24,9 +24,12 @@ def myfields(f):
|
||||||
def search(request):
|
def search(request):
|
||||||
# for compatability with old tracker form, which has
|
# for compatability with old tracker form, which has
|
||||||
# "all substates" = 6.
|
# "all substates" = 6.
|
||||||
args = request.REQUEST
|
args = request.GET.copy()
|
||||||
if args.get('sub_state_id', '') == '6':
|
if args.get('sub_state_id', '') == '6':
|
||||||
args['sub_state_id'] = '0'
|
args['sub_state_id'] = ''
|
||||||
|
# "job_owner" of "0" means "All/Any"
|
||||||
|
if args.get('search_job_owner', '') == '0':
|
||||||
|
args['search_job_owner'] = ''
|
||||||
form = IDSearch(args)
|
form = IDSearch(args)
|
||||||
# if there's a post, do the search and supply results to the template
|
# if there's a post, do the search and supply results to the template
|
||||||
searching = False
|
searching = False
|
||||||
|
|
Loading…
Reference in a new issue