From 959af82afd114679f7f902c1491da3a66e07cd86 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 5 Jul 2017 12:09:08 +0300 Subject: [PATCH] -Trimed export --- common/modules/product/models/Export.php | 5 +++++ 1 file changed, 5 insertions(+), 0 deletions(-) diff --git a/common/modules/product/models/Export.php b/common/modules/product/models/Export.php index d4050fc..a7a1485 100755 --- a/common/modules/product/models/Export.php +++ b/common/modules/product/models/Export.php @@ -74,6 +74,11 @@ implode(',', $fotos), ]; $to_write = array_merge($list, $mods); + + foreach ($to_write as $key => $value) { + $to_write[$key] = trim(preg_replace('/[^\S ]/', ' ', $value)); + } + fputcsv($handle, $to_write, ';'); unset( $product ); } -- libgit2 0.21.4