projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d0a6c3
)
[FIX] web: traceback in search view when no field
author
Mohammed Shekha
<msh@openerp.com>
Mon, 14 Jul 2014 12:29:22 +0000
(17:59 +0530)
committer
Richard Mathot
<rim@openerp.com>
Tue, 16 Sep 2014 09:37:48 +0000
(11:37 +0200)
addons/web/static/src/js/search.js
patch
|
blob
|
history
diff --git
a/addons/web/static/src/js/search.js
b/addons/web/static/src/js/search.js
index
17458e1
..
3b2a544
100644
(file)
--- a/
addons/web/static/src/js/search.js
+++ b/
addons/web/static/src/js/search.js
@@
-2367,7
+2367,7
@@
instance.web.search.AutoComplete = instance.web.Widget.extend({
switch (ev.which) {
case $.ui.keyCode.TAB:
case $.ui.keyCode.ENTER:
- if (self.get_search_string().length) {
+ if (self.current_result && self.get_search_string().length) {
self.select_item(ev);
}
break;