summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic
diff options
context:
space:
mode:
authorKhoi Nguyen <bng@odoo.com>2017-07-19 10:22:41 +0200
committerKhoi Nguyen <bng@odoo.com>2017-07-19 11:00:39 +0200
commitf889d3af82011be115f8e384130d25426482e772 (patch)
tree2c6b8f34785441052739824156603525402a9eb7 /addons/web/static/src/js/views/basic
parentb63e22f50ea8cce8deaa7dcc0d1c5649d2d2880b (diff)
[FIX] web: prevent traceback when double-clicking links in modals
Before this revision, double-clicking links in a modal triggered a traceback. This is because the second click attempts to change the active view while it is still being changed by the first click (more precisely, the controller of the active view is undefined on the second click). This commit ensures that on_attach_callback is called only if the controller is defined. Steps to reproduce the issue fixed by this commit: 1. Open a sales order; 2. Click on a product line; 3. Double-click on the product.
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions