This commit is contained in:
Kovid Goyal 2013-08-29 11:28:23 +05:30
parent 746c268928
commit c16d95877e

View File

@ -342,7 +342,7 @@ class View(object):
self.cache.clear_caches() self.cache.clear_caches()
if field is not None: if field is not None:
self.sort(field, ascending) self.sort(field, ascending)
if do_search and self.search_restriction or self.base_restriction: if do_search and (self.search_restriction or self.base_restriction):
self.search('', return_matches=False) self.search('', return_matches=False)
def refresh_ids(self, ids): def refresh_ids(self, ids):