From fdf5087831874f629f17625c4b03f8946f8a2f08 Mon Sep 17 00:00:00 2001 From: pavel Date: Thu, 21 Jul 2016 15:20:04 +0300 Subject: [PATCH] Fix '0' value is empty, making column is empty. --- ExportMenu.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ExportMenu.php b/ExportMenu.php index 6b9302c..f0b3965 100644 --- a/ExportMenu.php +++ b/ExportMenu.php @@ -1434,7 +1434,7 @@ public function generateRow($model, $key, $index) $this->_endCol++; $cell = $this->_objPHPExcelSheet->setCellValue( self::columnName($this->_endCol) . ($index + $this->_beginRow + 1), - empty($value) ? '' : strip_tags($value), + empty($value) && !strlen($value) ? '' : strip_tags($value), true ); $this->raiseEvent('onRenderDataCell', [$cell, $value, $model, $key, $index, $this]);