diff --git a/CHANGELOG.md b/CHANGELOG.md index 359b4634773592614c70670f3dccc65ebe60e1d3..e245a14c73035eb563e9eb009295dd02690e2af1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ v2.3 ==== +* BUG: Updating multiple source at one time, count was not reseted * FEATURE: Sort sub options by alphabetical order * FEATURE: In the map categories menu, display next to each categorie how many elements are available for this category * FEATURE: Edit marker popup template diff --git a/src/Biopen/GeoDirectoryBundle/Services/ElementImportService.php b/src/Biopen/GeoDirectoryBundle/Services/ElementImportService.php index 42af50fddcac7b36e4126fa35a3787250716c99a..65151bf1b195e148b0d8721b82fa28b69ae70e72 100755 --- a/src/Biopen/GeoDirectoryBundle/Services/ElementImportService.php +++ b/src/Biopen/GeoDirectoryBundle/Services/ElementImportService.php @@ -57,6 +57,15 @@ class ElementImportService public function startImport($import) { + $this->optionIdsToAddToEachElement = []; + $this->countElementCreated = 0; + $this->countElementUpdated = 0; + $this->countElementNothingToDo = 0; + $this->countElementErrors = 0; + $this->elementIdsErrors = []; + $this->errorsMessages = []; + $this->errorsCount = []; + $import->setCurrState(ImportState::Downloading); $import->setCurrMessage("Téléchargement des données en cours... Veuillez patienter..."); $this->em->persist($import);