diff -r fee98af8bb33 -r 5b6bc27ece6e web/request.py --- a/web/request.py Mon Sep 10 17:31:07 2012 +0200 +++ b/web/request.py Tue Sep 11 12:44:33 2012 +0200 @@ -357,7 +357,7 @@ def update_search_state(self): """update the current search state""" searchstate = self.form.get('__mode') - if not searchstate and self.cnx: + if not searchstate: searchstate = self.session.data.get('search_state', 'normal') self.set_search_state(searchstate) @@ -368,8 +368,7 @@ else: self.search_state = ('linksearch', searchstate.split(':')) assert len(self.search_state[-1]) == 4 - if self.cnx: - self.session.data['search_state'] = searchstate + self.session.data['search_state'] = searchstate def match_search_state(self, rset): """when searching an entity to create a relation, return True if entities in