web/request.py
changeset 8541 5b6bc27ece6e
parent 8538 00597256de18
child 8609 112a04c0473d
--- 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