From d95e15c3f12edb77c39437f84187844ffa6b0fd8 Mon Sep 17 00:00:00 2001 From: Oleksandr Miroshnichenko Date: Tue, 3 Oct 2017 15:53:35 +0300 Subject: [PATCH] Backport of MAGETWO-80198 for Magento 2.1: Fix issue #10565 #10575 (cherry picked from commit b73d5130cd0e2ddd5d8fd5b5cf3d66f9b3d77fd4) --- .../Magento/Ui/view/base/web/js/form/element/multiselect.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/Ui/view/base/web/js/form/element/multiselect.js b/app/code/Magento/Ui/view/base/web/js/form/element/multiselect.js index 57dadb60e5775..63a6ff7a6052b 100644 --- a/app/code/Magento/Ui/view/base/web/js/form/element/multiselect.js +++ b/app/code/Magento/Ui/view/base/web/js/form/element/multiselect.js @@ -49,7 +49,7 @@ define([ * @param {Array} data - current component value */ setPrepareToSendData: function (data) { - if (!data.length) { + if (_.isUndefined(data) || !data.length) { data = ''; }