[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:
parent
2bd4708023
commit
91619c24aa
|
@ -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; }
|
||||
|
|
Loading…
Reference in New Issue