cga...@users.adullact.net
unread,Jun 21, 2024, 9:01:09 AM (9 days ago) Jun 21Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to openmairie-...@googlegroups.com
Author: cgarcin
Date: 2024-06-21 15:01:03 +0200 (Fri, 21 Jun 2024)
New Revision: 1543
Modified:
branches/10439/obj/election_unite.class.php
Log:
fix : La transmission automatique des resultats ne s'effectue pas correctement selon les profils
+ Le contenu des champs envoi_aff et envoi_web ne s'affiche pas en entier s'ils ont le type "checkboxdisabled"
Modified: branches/10439/obj/election_unite.class.php
===================================================================
--- branches/10439/obj/election_unite.class.php 2024-06-21 12:45:31 UTC (rev 1542)
+++ branches/10439/obj/election_unite.class.php 2024-06-21 13:01:03 UTC (rev 1543)
@@ -305,10 +305,10 @@
$form->setType('envoi_aff', "checkbox");
}
if (! $this->f->isAccredited("election_unite_publication_res_web")) {
- $form->setType('envoi_web', "hidden");
+ $form->setType('envoi_web', "checkboxdisabled");
}
if (! $this->f->isAccredited("election_unite_publication_res_aff")) {
- $form->setType('envoi_aff', "hidden");
+ $form->setType('envoi_aff', "checkboxdisabled");
}
if ($this->calcul_auto_activee()) {
$form->setType('exprime', "hidden");
@@ -321,6 +321,21 @@
}
/**
+ * SETTER FORM - setTaille.
+ *
+ * @param formulaire $form Instance formulaire.
+ * @param integer $maj Identifant numérique de l'action.
+ *
+ * @return void
+ */
+ function setTaille(&$form, $maj) {
+ parent::setTaille($form, $maj);
+ // Affiche correctement le contenu pour les champs type "checkboxdisabled"
+ $form->setTaille('envoi_web', 2);
+ $form->setTaille('envoi_aff', 2);
+ }
+
+ /**
* SETTER FORM - setOnchange.
*
* @param formulaire $form Instance formulaire.