Skip to content

Commit

Permalink
#22510: Static test fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
engcom-Foxtrot committed Jul 12, 2019
1 parent 4e190ef commit c5674e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,7 @@ protected function getHtmlOutput()

/**
* @return string
* @SuppressWarnings(PHPMD.RequestAwareBlockMethod)
*/
public function getMediaCallback()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,8 @@ define([
$wrapper = $this.parents('.' + $widget.options.classes.attributeOptionsWrapper),
$label = $parent.find('.' + $widget.options.classes.attributeSelectedOptionLabelClass),
attributeId = $parent.attr('attribute-id'),
$input = $parent.find('.' + $widget.options.classes.attributeInput);
$input = $parent.find('.' + $widget.options.classes.attributeInput),
checkAdditionalData = JSON.parse(this.options.jsonSwatchConfig[attributeId]['additional_data']);

if ($widget.inProductList) {
$input = $widget.productForm.find(
Expand Down Expand Up @@ -785,9 +786,7 @@ define([
$widget.options.jsonConfig.optionPrices
]);

var checkAdditionalData = JSON.parse(this.options.jsonSwatchConfig[attributeId]['additional_data']);

if (1 == checkAdditionalData['update_product_preview_image']) {
if (checkAdditionalData['update_product_preview_image'] === '1') {
$widget._loadMedia(eventName);
}
$input.trigger('change');
Expand Down

0 comments on commit c5674e5

Please sign in to comment.