Merge pull request #3441 from InspectorCaracal/patch-13
Fix rpsystem search
This commit is contained in:
commit
d893cfd46e
1 changed files with 2 additions and 7 deletions
|
|
@ -1320,12 +1320,7 @@ class ContribRPObject(DefaultObject):
|
||||||
def get_search_result(
|
def get_search_result(
|
||||||
self,
|
self,
|
||||||
searchdata,
|
searchdata,
|
||||||
attribute_name=None,
|
|
||||||
typeclass=None,
|
|
||||||
candidates=None,
|
candidates=None,
|
||||||
exact=False,
|
|
||||||
use_dbref=None,
|
|
||||||
tags=None,
|
|
||||||
**kwargs,
|
**kwargs,
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
|
|
@ -1352,12 +1347,12 @@ class ContribRPObject(DefaultObject):
|
||||||
|
|
||||||
if not results and is_builder:
|
if not results and is_builder:
|
||||||
# builders get a chance to search only by key+alias
|
# builders get a chance to search only by key+alias
|
||||||
results = search_obj(searchdata)
|
results = search_obj(searchdata, candidates=candidates, **kwargs)
|
||||||
else:
|
else:
|
||||||
# global searches / #drefs end up here. Global searches are
|
# global searches / #drefs end up here. Global searches are
|
||||||
# only done in code, so is controlled, #dbrefs are turned off
|
# only done in code, so is controlled, #dbrefs are turned off
|
||||||
# for non-Builders.
|
# for non-Builders.
|
||||||
results = search_obj(searchdata)
|
results = search_obj(searchdata, **kwargs)
|
||||||
return results
|
return results
|
||||||
|
|
||||||
def get_posed_sdesc(self, sdesc, **kwargs):
|
def get_posed_sdesc(self, sdesc, **kwargs):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue