From 2d8fa6fe79e9baa6b4ee6c965184939e0f747609 Mon Sep 17 00:00:00 2001 From: nathangray Date: Fri, 4 Aug 2017 09:20:26 -0600 Subject: [PATCH] Fix multiselects go missing when importing --- importexport/inc/class.importexport_export_csv.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/importexport/inc/class.importexport_export_csv.inc.php b/importexport/inc/class.importexport_export_csv.inc.php index 50288aa5da..0fbd5ad695 100644 --- a/importexport/inc/class.importexport_export_csv.inc.php +++ b/importexport/inc/class.importexport_export_csv.inc.php @@ -318,7 +318,7 @@ class importexport_export_csv implements importexport_iface_export_record } foreach((array)$fields['select'] as $name) { if($record->$name != null && is_array($selects) && $selects[$name]) { - $record->$name = explode(',', $record->$name); + $record->$name = is_string($record->$name) ? explode(',', $record->$name) : $record->$name; if(is_array($record->$name)) { $names = array(); foreach($record->$name as $_name) {