From 567082b5b288df43d1794b00b8e43ae486a91d9d Mon Sep 17 00:00:00 2001 From: Vlad Veselov <vveselov@ebay.com> Date: Tue, 14 Jul 2015 16:22:47 -0400 Subject: [PATCH] MAGETWO-35379: Gallery images are not loaded for Configurable Product - adopt functionality in order to pass functional tests --- .../ConfigurableProduct/view/frontend/web/js/configurable.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/code/Magento/ConfigurableProduct/view/frontend/web/js/configurable.js b/app/code/Magento/ConfigurableProduct/view/frontend/web/js/configurable.js index 4385e37ac0a..34cbd39eff8 100644 --- a/app/code/Magento/ConfigurableProduct/view/frontend/web/js/configurable.js +++ b/app/code/Magento/ConfigurableProduct/view/frontend/web/js/configurable.js @@ -71,7 +71,9 @@ define([ this.options.values = this.options.spConfig.defaultValues || {}; this.options.parentImage = $('[data-role=base-image-container] img').attr('src'); - this.initialGalleryImages = $(this.options.mediaGallerySelector).gallery('option', 'images'); + this.initialGalleryImages = $(this.options.mediaGallerySelector).data('mageGallery') + ? $(this.options.mediaGallerySelector).gallery('option', 'images') + : []; this.inputSimpleProduct = this.element.find(this.options.selectSimpleProduct); }, -- GitLab