[IMP] monodb selects first database if only one match. Even if db-filter was not provided
bzr revid: fme@openerp.com-20140508083921-pu2zte8fq69wvo8o
This commit is contained in:
parent
319ed3dede
commit
e9572c56b3
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue