From a06bdeaf2f6c1f59b1da1cbf8edb64fbaf87b9e4 Mon Sep 17 00:00:00 2001 From: Vinai Kopp Date: Tue, 28 Mar 2017 13:01:49 +0200 Subject: [PATCH] Invalidate and refresh customer data sections on HTTP DELETE requests --- .../Magento/Customer/view/frontend/web/js/customer-data.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/code/Magento/Customer/view/frontend/web/js/customer-data.js b/app/code/Magento/Customer/view/frontend/web/js/customer-data.js index f94ba2874ef01..012afba9711bc 100644 --- a/app/code/Magento/Customer/view/frontend/web/js/customer-data.js +++ b/app/code/Magento/Customer/view/frontend/web/js/customer-data.js @@ -344,7 +344,7 @@ define([ var sections, redirects; - if (settings.type.match(/post|put/i)) { + if (settings.type.match(/post|put|delete/i)) { sections = sectionConfig.getAffectedSections(settings.url); if (sections) { @@ -365,7 +365,7 @@ define([ $(document).on('submit', function (event) { var sections; - if (event.target.method.match(/post|put/i)) { + if (event.target.method.match(/post|put|delete/i)) { sections = sectionConfig.getAffectedSections(event.target.action); if (sections) {