From f4bcfe6a3233bc8d0d473af710bc121715d7ce2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Warnon?= Date: Wed, 21 Oct 2020 07:29:18 +0000 Subject: [PATCH] [FIX] website_slides: correctly close subscription modal when saving This commit fixes a small issue with the modal displayed when the user wants to manage his subscription to a course. When pressing the "Save" button, if no modification was made, the modal would not close and nothing would happen (which seems strange on a user POV). Now the modal correctly destroys itself and closes. Task 2363028 closes odoo/odoo#60507 X-original-commit: 32d0b1086b5db6c58c1e2891d8d77fafb9482de9 Signed-off-by: Thibault Delavallee (tde) --- addons/website_slides/static/src/js/slides_course_unsubscribe.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/website_slides/static/src/js/slides_course_unsubscribe.js b/addons/website_slides/static/src/js/slides_course_unsubscribe.js index 2003f8ea688..ec0e104922a 100644 --- a/addons/website_slides/static/src/js/slides_course_unsubscribe.js +++ b/addons/website_slides/static/src/js/slides_course_unsubscribe.js @@ -105,6 +105,7 @@ var SlideUnsubscribeDialog = Dialog.extend({ _onClickSubscriptionSubmit: function () { if (this.isFollower === this.getSubscriptionState()) { + this.destroy(); return; } this._rpc({