summaryrefslogtreecommitdiff
path: root/addons/web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2015-10-12 16:29:01 +0200
committerAaron Bohy <aab@odoo.com>2015-10-13 11:26:22 +0200
commite82deb5ae17d38799f5bb1592fab9323d02b2460 (patch)
tree1e049a57087f9ad8a8f47c4f73c0a751a65e1f38 /addons/web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js
parent1cf83427dacf343fd91d5f1fecf35189913e0265 (diff)
[FIX] web: action_manager: restore internal state on rejected action
When an error occured while executing an action (e.g. access rights), the action manager's state was inconsistent as inner_action, inner_widget and action_stack were all updated before trying to execute the action. Then, if the user tried to open another action, the screen was split into two because the reference of the previous action was lost, and thus it couldn't be detached. We now restore inner_action, inner_widget and action_stack to their previous state in the case of a rejected deferred. A better fix would be to update all three variables once the deferred is resolved, but it would require a refactoring of the way the action manager and the view manager communicate to perform the do_push_state and to compute the breadcrumbs. Indeed, those operations directly rely on the internal state of the action manager, and they are performed before the callbacks in push_state are called. Such a refactoring should probably not be done in stable. Partly fixes #8886.
Diffstat (limited to 'addons/web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js')
0 files changed, 0 insertions, 0 deletions