Skip to content

Commit d4f1ee1

Browse files
committed
MAGETWO-66886: Invalidate and refresh customer data sections on HTTP DELETE requests #9034
- Merge Pull Request #9034 from Vinai/magento2:customer-data-delete
2 parents a4a9c2f + a06bdea commit d4f1ee1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Customer/view/frontend/web/js/customer-data.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ define([
344344
var sections,
345345
redirects;
346346

347-
if (settings.type.match(/post|put/i)) {
347+
if (settings.type.match(/post|put|delete/i)) {
348348
sections = sectionConfig.getAffectedSections(settings.url);
349349

350350
if (sections) {
@@ -365,7 +365,7 @@ define([
365365
$(document).on('submit', function (event) {
366366
var sections;
367367

368-
if (event.target.method.match(/post|put/i)) {
368+
if (event.target.method.match(/post|put|delete/i)) {
369369
sections = sectionConfig.getAffectedSections(event.target.action);
370370

371371
if (sections) {

0 commit comments

Comments
 (0)