From e9572c56b360d39003b7262a98ef88a38ca45070 Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Thu, 8 May 2014 10:39:21 +0200 Subject: [PATCH] [IMP] monodb selects first database if only one match. Even if db-filter was not provided bzr revid: fme@openerp.com-20140508083921-pu2zte8fq69wvo8o --- openerp/http.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/openerp/http.py b/openerp/http.py index d1cd7f6144d..72bb28ba92b 100644 --- a/openerp/http.py +++ b/openerp/http.py @@ -1285,9 +1285,8 @@ def db_monodb(httprequest=None): if db_session in dbs: return db_session - # if dbfilters was specified when launching the server and there is - # only one possible db, we take that one - if openerp.tools.config['dbfilter'] != ".*" and len(dbs) == 1: + # if there is only one possible db, we take that one + if len(dbs) == 1: return dbs[0] return None