/[openfoncier]/trunk/obj/consultation.class.php
ViewVC logotype

Diff of /trunk/obj/consultation.class.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 597 by nhaye, Mon Nov 5 14:53:03 2012 UTC revision 598 by nhaye, Mon Nov 5 15:30:51 2012 UTC
# Line 32  class consultation extends consultation_ Line 32  class consultation extends consultation_
32    
33      function setvalF($val) {      function setvalF($val) {
34          parent::setValF($val);          parent::setValF($val);
35          if($this->maj==0) {          if($this->getParameter('maj')==0) {
36              $this->valF["date_reception"]=$this->valF["date_envoi"];              $this->valF["date_reception"]=$this->valF["date_envoi"];
37          }          }
38    
39          // Si un retour d'avis est modifie on passe "lu" a false          // Si un retour d'avis est modifie on passe "lu" a false
40          if($this->maj==1 AND ($this->val[array_search("avis_consultation",$this->champs)] != $val["avis_consultation"] OR          if($this->getParameter('maj')==1 AND (
41             $this->val[array_search("date_retour",$this->champs)] != $val["date_retour"] OR              $this->val[array_search("avis_consultation",$this->champs)] != $val["avis_consultation"] OR
42             $this->val[array_search("motivation",$this->champs)] != $val["motivation"] OR              $this->val[array_search("date_retour",$this->champs)] != $val["date_retour"] OR
43             $this->val[array_search("fichier",$this->champs)] != $val["fichier"])) {              $this->val[array_search("motivation",$this->champs)] != $val["motivation"] OR
44              $this->valF["lu"]=FALSE;              $this->val[array_search("fichier",$this->champs)] != $val["fichier"]
45                )
46            ) {
47                $this->valF["lu"]=false;
48          }          }
           
49      }      }
50            
51      function setType(&$form,$maj) {      function setType(&$form,$maj) {

Legend:
Removed from v.597  
changed lines
  Added in v.598

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26