Anomalie #998
ferméEmailing - Sauvegarde avant envoi
100%
Description
Sur la page /mailing_adherents.php?mailing_new=true
, le bouton Sauvegarder soumet le formulaire en POST
à l'URL /mailing_adherents.php?mailing_new=true
ce qui ne permet pas de sauvegarder un brouillon email.
Mis à jour par Michaël DEVILLET il y a presque 8 ans
When i would like to save a mail thefollowing page after clicking "Save" is :
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at [no address given] to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
The page adress is : http://************/galette/mailing_adherents.php#mail_preview
Mis à jour par Johan Cwiklinski il y a presque 8 ans
- Statut changé de Nouveau à In Progress
- Priorité changé de Normal à Bas
I do not know what is the root cause ot this issue; but this is not related to the URL the form points to. I can reproduce the error with a "clean" URL.
This has already been fixed for the next Galette release (0.9); I'll try to provide a quick fix you can apply on your instance, but since there will not be any new 0.8 release; I'm not going to spend much time on this.
Mis à jour par Johan Cwiklinski il y a presque 8 ans
- Catégorie mis à Emails
- Assigné à mis à Johan Cwiklinski
Le correctif :
diff --git a/galette/lib/Galette/Core/MailingHistory.php b/galette/lib/Galette/Core/MailingHistory.php
index 5446663..57f40ea 100644
--- a/galette/lib/Galette/Core/MailingHistory.php
+++ b/galette/lib/Galette/Core/MailingHistory.php
@@ -286,7 +286,7 @@ class MailingHistory extends History
'mailing_recipients' => serialize($_recipients),
'mailing_sent' => ($this->_sent) ?
true :
- ($this->zdb->isPostgres() ? 'false' : 0)
+ ($zdb->isPostgres() ? 'false' : 0)
);
$update = $zdb->update(self::TABLE);
@@ -335,7 +335,7 @@ class MailingHistory extends History
'mailing_recipients' => serialize($_recipients),
'mailing_sent' => ($this->_sent) ?
true :
- ($this->zdb->isPostgres() ? 'false' : 0)
+ ($zdb->isPostgres() ? 'false' : 0)
);
$insert = $zdb->insert(self::TABLE);
Mis à jour par Johan Cwiklinski il y a presque 8 ans
- Statut changé de In Progress à Résolu
Mis à jour par Johan Cwiklinski il y a plus de 7 ans
- % réalisé changé de 0 à 100
Appliqué par commit f75f8a6184d2fdd70522d11e710bd6be24e647e7.