From 9f74562a3711554b19198793e8b57b532e7a4e90 Mon Sep 17 00:00:00 2001 From: Lucas Bartholemy Date: Mon, 17 Jun 2019 18:28:13 +0200 Subject: [PATCH] Fix #3471: Display of Date Time Column in excel with empty/false value --- protected/humhub/components/export/DateTimeColumn.php | 3 ++- protected/humhub/docs/CHANGELOG.md | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/protected/humhub/components/export/DateTimeColumn.php b/protected/humhub/components/export/DateTimeColumn.php index 901f73d3a2..cd52244563 100644 --- a/protected/humhub/components/export/DateTimeColumn.php +++ b/protected/humhub/components/export/DateTimeColumn.php @@ -30,6 +30,7 @@ class DateTimeColumn extends DataColumn */ public function renderDataCellContent($model, $key, $index) { - return Date::PHPToExcel(parent::renderDataCellContent($model, $key, $index)); + $value = Date::PHPToExcel(parent::renderDataCellContent($model, $key, $index)); + return $value === false ? null : $value; } } diff --git a/protected/humhub/docs/CHANGELOG.md b/protected/humhub/docs/CHANGELOG.md index 3148acb1f9..654e4244ef 100644 --- a/protected/humhub/docs/CHANGELOG.md +++ b/protected/humhub/docs/CHANGELOG.md @@ -11,6 +11,7 @@ HumHub Change Log - Fix: Directory stats progress color (@Felli) - Fix #2724: Edited post does not display the space on dashboard - Fix #3533: Responsive design issues +- Fix #3471: Display of Date Time Column in excel with empty/false value 1.3.13 (May 3, 2019)