From bf2460b7a36f1349befaba7bd246424bf853a71b Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Mon, 20 Jan 2014 15:55:22 -0500 Subject: [PATCH] Fix stripping of leading zero for text columns (footprint) --- bomgen/Bomgen/functions.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bomgen/Bomgen/functions.inc.php b/bomgen/Bomgen/functions.inc.php index 1340e11..924374e 100644 --- a/bomgen/Bomgen/functions.inc.php +++ b/bomgen/Bomgen/functions.inc.php @@ -184,7 +184,11 @@ function xls_write_cell_gen($row, $col, $value, $format_texte, $entete, $size, $ $format->setLeft(1); /* Bordure de gauche. */ } - $worksheet->write($row, $col, $value, $format); + if ($format_texte == XLS_FORMAT_TEXT) { + $worksheet->writeString($row, $col, $value, $format); + } else { + $worksheet->write($row, $col, $value, $format); + } } function xls_write_col_header($row, $col, $value) -- 2.20.1