diff options
| author | Denis Ledoux <dle@odoo.com> | 2014-09-15 15:22:04 +0200 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2014-09-15 15:22:04 +0200 |
| commit | 685fa26e83e6358fcaa786b6e0358bd8b1e155f3 (patch) | |
| tree | 0d3a226238433fa672f05749da0f37178dd76c7d /addons/web/controllers/main.py | |
| parent | b5b7dccd526075ad635b66abfcc87c1f4f33afd7 (diff) | |
[FIX] web: do not check if db in session match filter if no db
Diffstat (limited to 'addons/web/controllers/main.py')
| -rw-r--r-- | addons/web/controllers/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py index 35be5189c0e..b59e01b6c39 100644 --- a/addons/web/controllers/main.py +++ b/addons/web/controllers/main.py @@ -153,7 +153,7 @@ def ensure_db(redirect='/web/database/selector'): return # if db not provided, use the session one - if not db and http.db_filter([request.session.db]): + if not db and request.session.db and http.db_filter([request.session.db]): db = request.session.db # if no database provided and no database in session, use monodb |
