web/views/tabs.py
changeset 487 355356b781d7
parent 485 0f830732be19
child 489 21183fc36b39
--- a/web/views/tabs.py	Tue Jan 27 18:49:56 2009 +0100
+++ b/web/views/tabs.py	Tue Jan 27 19:12:37 2009 +0100
@@ -58,8 +58,9 @@
         if activetab is None:
             cookie['active_tab'] = default
             self.req.set_cookie(cookie, 'active_tab')
-            return default
-        tab = activetab.value
+            tab = default
+        else:
+            tab = activetab.value
         return tab if tab in tabs else default
 
     def render_tabs(self, tabs, default, entity):