Description
Searching with a negative subexpression breaks the wiki, with the NameError "global name 'restult' is not defined"
Steps to reproduce
Full text search for "CategoryDrakkar - (CategoryField CategoryTable)"
Example
[[FullSearch(CategoryDrakkar - (CategoryField CategoryTable))]]
Details
This Wiki.
Workaround
The bug is caused by a typo in MoinMoin/search.py, method QueryParser._single_term(). The row
if match.group("NEG"): restult.negate()
should read
if match.group("NEG"): result.negate()
Discussion
Maybe we should do more unit tests to catch such issues.
Plan
- Priority:
- Assigned to:
- Status: Fixed in patch-686.