diff --git a/plugins/multiselect/BulkImport.php b/plugins/multiselect/BulkImport.php index 2b342c4..dcf04e5 100755 --- a/plugins/multiselect/BulkImport.php +++ b/plugins/multiselect/BulkImport.php @@ -318,8 +318,13 @@ class InetBulkImportFolderMultiSelectAction extends KTFolderAction { $val = KTUtil::arrayGet($values, 'metadata_' . $oField->getId()); //Fix for multiselect not submitting data due to the value not being flat. + $sVal = ''; if (is_array($val)) { - $val = $val[0]; + foreach ($val as $v) { + $sVal .= $v . ", "; + } + $sVal = substr($sVal, 0, strlen($sVal) - 2); + $val = $sVal; } if ($oFieldset->getIsConditional()) diff --git a/plugins/multiselect/BulkUpload.php b/plugins/multiselect/BulkUpload.php index 8c81184..dc72195 100755 --- a/plugins/multiselect/BulkUpload.php +++ b/plugins/multiselect/BulkUpload.php @@ -332,9 +332,14 @@ class InetBulkUploadFolderAction extends KTFolderAction { //var_dump($oField->getId()); $val = KTUtil::arrayGet($values, 'metadata_' . $oField->getId()); - //Fix for multiselect not submitting data due to the value being an array. + //Fix for multiselect not submitting data due to the value not being flat. + $sVal = ''; if (is_array($val)) { - $val = $val[0]; + foreach ($val as $v) { + $sVal .= $v . ", "; + } + $sVal = substr($sVal, 0, strlen($sVal) - 2); + $val = $sVal; } if ($oFieldset->getIsConditional())