Skip to content

Commit f765f8f

Browse files
committed
#39640: Issue with the Customizable Options grid on the product page in the admin panel
- added comment for new code block and changed copyright
1 parent 79bb384 commit f765f8f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/code/Magento/Catalog/view/adminhtml/web/js/product-gallery.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2015 Adobe
2+
* Copyright 2013 Adobe
33
* All Rights Reserved.
44
*/
55

@@ -355,6 +355,9 @@ define([
355355
imageData.isRemoved = true;
356356
$imageContainer.addClass('removed').hide().find('.is-removed').val(1);
357357

358+
// Reset all image role/type selections to 'no_selection' value
359+
// For each role (like base image, small image, etc.), clears both
360+
// the UI select element and the internal types data structure
358361
$.each(this.options.types, $.proxy(function (index, type) {
359362
this.element.find('.image-' + type.code).val('no_selection');
360363
this.options.types[index].value = 'no_selection';

0 commit comments

Comments
 (0)