fray...@adullact.net
ólesið,8. des. 2016, 02:56:318.12.2016Sign in to reply to author
Sign in to forward
Þú hefur ekki heimild til að eyða skilaboðum í þessum hópi
Tilkynna skilaboð fyrir misnotkun
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
til openmairie-...@googlegroups.com
Author: fraynaud
Date: 2016-12-08 08:55:10 +0100 (Thu, 08 Dec 2016)
New Revision: 873
Modified:
branches/test_5.0.0-a1/obj/note.class.php
Log:
correction selection sous formulaire
Modified: branches/test_5.0.0-a1/obj/note.class.php
===================================================================
--- branches/test_5.0.0-a1/obj/note.class.php 2016-12-05 16:23:14 UTC (rev 872)
+++ branches/test_5.0.0-a1/obj/note.class.php 2016-12-08 07:55:10 UTC (rev 873)
@@ -12,7 +12,8 @@
function setType(&$form, $maj) {
parent::setType($form, $maj);
- $form->setType("courrier", "selecthiddenstatic");
+ if($maj==0)
+ $form->setType("courrier", "hiddenstatic");
if($maj<2)
$form->setType("observation", "html");
}
@@ -22,6 +23,18 @@
$form->setLib("observation", "");
}
+ function setValsousformulaire(&$form,$maj,$validation,$idxformulaire,$retourformulaire,$typeformulaire,&$db){
+ parent :: setValsousformulaire($form,$maj,$validation,$idxformulaire,$retourformulaire,$typeformulaire,$db);
+ if($validation==0 and $maj==0) {
+ if($retourformulaire =='courrier')
+ $form->setVal('courrier', $idxformulaire);
+ if($retourformulaire =='courrier_arrivee'){
+ $form->setVal('courrier', $idxformulaire);
+ }
+ if($retourformulaire =='courrier_depart')
+ $form->setVal('courrier', $idxformulaire);
+ }// fin validation
+ }
}