Smile-SA / magento2-module-product-label

Module to handle custom labels with images on products
Open Software License 3.0
54 stars 36 forks source link

Image not displayed when I edit a previously created Label #2

Closed romainruaud closed 5 years ago

romainruaud commented 5 years ago

Creation / Save of a label is working fine. The grid is also displaying properly the label, that's cool.

But if I come back to a previously created label, the image is not shown (and I cannot edit it).

There is an error in JS console on the pub/static/version1552324084/adminhtml/Magento/backend/fr_FR/Magento_Ui/js/form/element/file-uploader.js file :

Uncaught TypeError: value.map is not a function
    at UiClass.setInitialValue (file-uploader.js:78)
    at UiClass.initialize (abstract.js:77)
    at UiClass.initialize (wrapper.js:109)
    at UiClass._super (wrapper.js:106)
    at UiClass.initialize (image-uploader.js:24)
    at UiClass.initialize (wrapper.js:109)
    at new UiClass (class.js:49)
    at Object.initComponent (layout.js:137)
    at fire (jquery.js:3232)
    at Object.fireWith [as resolveWith] (jquery.js:3362)
houdaElr commented 5 years ago

Fixed

romainruaud commented 5 years ago

Tested OK for me, thank you !