summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2012-04-26 14:12:10 +0200
committerXavier Morel <xmo@openerp.com>2012-04-26 14:12:10 +0200
commiteb989f68a80640bef55a74bee9e64f3bf013d0ea (patch)
treedbaf25bb4357c3ccc55974b229e673b83f0e8fa7 /addons/web/static/src
parent4694dcf00de6e0f7203a9b9eda8bf1c2ef10a491 (diff)
[TEST] behavior when selecting a given completion, fix handler
bzr revid: xmo@openerp.com-20120426121210-012l0doboktnic8s
Diffstat (limited to 'addons/web/static/src')
-rw-r--r--addons/web/static/src/js/search.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/addons/web/static/src/js/search.js b/addons/web/static/src/js/search.js
index 6f02a8d9934..f94cad0dc10 100644
--- a/addons/web/static/src/js/search.js
+++ b/addons/web/static/src/js/search.js
@@ -381,8 +381,7 @@ instance.web.SearchView = instance.web.Widget.extend(/** @lends instance.web.Sea
select_completion: function (e, ui) {
e.preventDefault();
- // FIXME: could have multiple values, shitty API
- this.query.add_value(ui.item.category, ui.item.values[0]);
+ this.query.add(ui.item.facet);
},
renderFacets: function () {
var self = this;