diff --git a/feedme/services/FeedMe_FieldsService.php b/feedme/services/FeedMe_FieldsService.php index e837794a..7d908629 100644 --- a/feedme/services/FeedMe_FieldsService.php +++ b/feedme/services/FeedMe_FieldsService.php @@ -348,14 +348,27 @@ public function prepTable($data, $handle, $field) { $rows = ArrayHelper::stringToArray($data); foreach ($rows as $i => $row) { - // Check for false for checkbox - if ($row === 'false') { - $row = null; - } + if (is_array($row)) { + foreach ($row as $j => $r) { + // Check for false for checkbox + if ($r === 'false') { + $r = null; + } + + $fieldData[$i+1] = array( + 'col'.$columnHandle => $r, + ); + } + } else { + // Check for false for checkbox + if ($row === 'false') { + $row = null; + } - $fieldData[$i+1] = array( - 'col'.$columnHandle => $row, - ); + $fieldData[$i+1] = array( + 'col'.$columnHandle => $row, + ); + } } }