diff --git a/Controller/Component/CsvComponent.php b/Controller/Component/CsvComponent.php index 1513b60..cbd3fa5 100644 --- a/Controller/Component/CsvComponent.php +++ b/Controller/Component/CsvComponent.php @@ -114,7 +114,13 @@ public function export($filename, $data, $options = array()) { if ($firstRecord) { $headers[] = $this->_encode($model . '.' . $field); } + + if(is_bool($value)){ + $value = ($value)?'1':'0'; + } + $row[] = $this->_encode($value); + } // TODO due to HABTM potentially being huge, creating an else might not be plausible } }