Actions
Anomalie #1872
closedCannot remove emails from emails management
Start date:
09/22/2024
Due date:
% Done:
100%
Estimated time:
Version utilisée:
Vote:
Description
Hello,
J'ai eu ce retour concernant l'impossibilité d'effacer un courriel dans la gestion des envois.
J'ai trouvé ça dans les logs :
82.165.86.18 - 2024-09-22 01:07:20 - ERROR - An error occurred on delete | Galette\Core\MailingHistory::removeEntries(): Argument #1 ($ids) must be of type array|int, string given, called in /homepages/21/d595234059/htdocs/galette/lib/Galette/Controllers/Crud/MailingsController.php on line 631
Une idée,
Merci pour aide ;)
Updated by Johan Cwiklinski about 2 months ago
- Category set to Core
- Status changed from Nouveau to In Progress
- Assignee set to Johan Cwiklinski
- Target version set to 1.1.4
Ce correctif devrait faire l'affaire :
diff --git a/galette/lib/Galette/Controllers/Crud/MailingsController.php b/galette/lib/Galette/Controllers/Crud/MailingsController.php
index 77f8b0512..50bfa1ceb 100644
--- a/galette/lib/Galette/Controllers/Crud/MailingsController.php
+++ b/galette/lib/Galette/Controllers/Crud/MailingsController.php
@@ -628,7 +628,7 @@ class MailingsController extends CrudController
protected function doDelete(array $args, array $post): bool
{
$mailhist = new MailingHistory($this->zdb, $this->login, $this->preferences);
- return $mailhist->removeEntries($args['id'], $this->history);
+ return $mailhist->removeEntries((int)$args['id'], $this->history);
}
// /CRUD - Delete
// /CRUD
Updated by Johan Cwiklinski about 2 months ago
- Status changed from In Progress to Résolu
- % Done changed from 0 to 100
Appliqué par commit b4243335c18a9ccbc3406a483241a19f4afda54f.
Updated by Frederic CROZET about 2 months ago
Updated by Johan Cwiklinski about 1 month ago
- Subject changed from Impossible d'effacer les courriels dans gestion des envois to Cannot remove emails from emails management
Updated by Johan Cwiklinski about 1 month ago
- Status changed from Résolu to Fermé
Actions