Skip to content

Commit aae79da

Browse files
Chhandak.BaruaChhandak.Barua
authored andcommitted
ACP2E-3504: Product images not resized when added as configurable product
1 parent e8f157c commit aae79da

File tree

1 file changed

+3
-1
lines changed
  • app/code/Magento/ConfigurableProduct/view/adminhtml/web/js/variations/steps

1 file changed

+3
-1
lines changed

app/code/Magento/ConfigurableProduct/view/adminhtml/web/js/variations/steps/bulk.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@ define([
381381
*/
382382
bindGalleries: function () {
383383
var self = this; // Save the correct context of 'this'
384+
384385
$('[data-role=bulk-step] [data-role=gallery]').each(function (index, element) {
385386
var gallery = $(element),
386387
uploadInput = $(gallery.find('.uploader'))[0],
@@ -469,8 +470,9 @@ define([
469470
maxHeight: self.options.maxHeight,
470471
quality: 0.92,
471472
beforeDraw() {
472-
if (!allowedResize)
473+
if (!allowedResize) {
473474
this.abort();
475+
}
474476
}
475477
});
476478
}

0 commit comments

Comments
 (0)