From 5e003677571753f470e5dba24f7676881ff1cdc1 Mon Sep 17 00:00:00 2001 From: Benjamin Perche Date: Mon, 21 Jul 2014 11:53:54 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20cs=20=09modifi=C3=A9:=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20core/lib/Thelia/Core/FileFormat/Formatting/Formatter/C?= =?UTF-8?q?SVFormatter.php=20=09modifi=C3=A9:=20=20=20=20=20=20=20=20=20co?= =?UTF-8?q?re/lib/Thelia/ImportExport/Import/Type/ProductPriceImport.php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Core/FileFormat/Formatting/Formatter/CSVFormatter.php | 3 +-- .../lib/Thelia/ImportExport/Import/Type/ProductPriceImport.php | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/lib/Thelia/Core/FileFormat/Formatting/Formatter/CSVFormatter.php b/core/lib/Thelia/Core/FileFormat/Formatting/Formatter/CSVFormatter.php index 56de24c26..96b8ca4d7 100644 --- a/core/lib/Thelia/Core/FileFormat/Formatting/Formatter/CSVFormatter.php +++ b/core/lib/Thelia/Core/FileFormat/Formatting/Formatter/CSVFormatter.php @@ -81,7 +81,6 @@ class CSVFormatter extends AbstractFormatter $delimiterLength = strlen($this->delimiter); $lineReturnLength = strlen($this->lineReturn); - if (false !== $firstRow) { $rawKeys = array_keys($firstRow); $keys = []; @@ -170,4 +169,4 @@ class CSVFormatter extends AbstractFormatter { return FormatType::TABLE; } -} \ No newline at end of file +} diff --git a/core/lib/Thelia/ImportExport/Import/Type/ProductPriceImport.php b/core/lib/Thelia/ImportExport/Import/Type/ProductPriceImport.php index f008f7aba..09b04f13e 100644 --- a/core/lib/Thelia/ImportExport/Import/Type/ProductPriceImport.php +++ b/core/lib/Thelia/ImportExport/Import/Type/ProductPriceImport.php @@ -107,6 +107,7 @@ class ProductPriceImport extends ImportHandler } $price->save(); + $this->importedRows++; } }