[FIX] do not consider empty domains as domains (ignore them) in FilterGroup domain management

lp bug: https://launchpad.net/bugs/854704 fixed

bzr revid: xmo@openerp.com-20110920134607-lz8d8r4ojbrgihd7
This commit is contained in:
Xavier Morel 2011-09-20 15:46:07 +02:00
parent 2bd4708023
commit 91619c24aa
1 changed files with 1 additions and 1 deletions

View File

@ -543,7 +543,7 @@ openerp.web.search.FilterGroup = openerp.web.search.Input.extend(/** @lends open
var domains = _(this.filters).chain()
.filter(function (filter) { return filter.is_enabled(); })
.map(function (filter) { return filter.attrs.domain; })
.compact()
.reject(_.isEmpty)
.value();
if (!domains.length) { return; }