Skip to content
Extraits de code Groupes Projets
Valider 5e119882 rédigé par Thomas Steur's avatar Thomas Steur Validation de Matthieu Aubry
Parcourir les fichiers

Reuse existing period archives when range date is requested when possible (#12004)

fixes #12003
parent ffe79e49
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -178,8 +178,7 @@ class ArchiveSelector ...@@ -178,8 +178,7 @@ class ArchiveSelector
$bind = array(); $bind = array();
if ($firstPeriod instanceof Range) { if ($firstPeriod instanceof Range) {
$dateCondition = "period = ? AND date1 = ? AND date2 = ?"; $dateCondition = "date1 = ? AND date2 = ?";
$bind[] = $firstPeriod->getId();
$bind[] = $firstPeriod->getDateStart()->toString('Y-m-d'); $bind[] = $firstPeriod->getDateStart()->toString('Y-m-d');
$bind[] = $firstPeriod->getDateEnd()->toString('Y-m-d'); $bind[] = $firstPeriod->getDateEnd()->toString('Y-m-d');
} else { } else {
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter