|
a/Allura/allura/lib/search.py |
|
b/Allura/allura/lib/search.py |
|
... |
|
... |
88 |
fields = a.index()
|
88 |
fields = a.index()
|
89 |
# Now, we'll translate all the fld:
|
89 |
# Now, we'll translate all the fld:
|
90 |
for f in fields:
|
90 |
for f in fields:
|
91 |
if f[-2] == '_':
|
91 |
if f[-2] == '_':
|
92 |
base = f[:-2]
|
92 |
base = f[:-2]
|
|
|
93 |
if base[0] == '_': # handle tracker custom fields
|
|
|
94 |
base = base[1:]
|
93 |
actual = f
|
95 |
actual = f
|
94 |
q = q.replace(base+':', actual+':')
|
96 |
q = q.replace(base+':', actual+':')
|
95 |
fq = [
|
97 |
fq = [
|
96 |
'type_s:%s' % fields['type_s'],
|
98 |
'type_s:%s' % fields['type_s'],
|
97 |
'project_id_s:%s' % c.project._id,
|
99 |
'project_id_s:%s' % c.project._id,
|