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

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

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

revision 2123 by vpihour, Tue Jul 30 17:10:13 2013 UTC revision 2124 by vpihour, Thu Aug 1 15:27:03 2013 UTC
# Line 1909  class instruction extends instruction_ge Line 1909  class instruction extends instruction_ge
1909                      ON                      ON
1910                          dossier_instruction_type.dossier_instruction_type = dossier.dossier_instruction_type                          dossier_instruction_type.dossier_instruction_type = dossier.dossier_instruction_type
1911                  WHERE                  WHERE
1912                      dossier_autorisation.dossier_autorisation = '".$row['dossier_autorisation']."'                      dossier_autorisation.dossier_autorisation = '".$row->dossier_autorisation."'
1913                      AND                      AND
1914                      dossier_instruction_type.code = '".$row['dossier_instruction_type']."'";                      dossier_instruction_type.code = '".$row->dossier_instruction_type."'";
1915              $row['version'] = $this->db->getOne($sql);              $row->version = $this->db->getOne($sql);
1916              $this->f->addToLog("getSpecificMetadata(): db->getOne(\"".$sql."\")", VERBOSE_MODE);              $this->f->addToLog("getSpecificMetadata(): db->getOne(\"".$sql."\")", VERBOSE_MODE);
1917              if ( database::isError($row['version'])){              if ( database::isError($row->version)){
1918                  $this->f->addToError("", $row['version'], $row['version']);                  $this->f->addToError("", $row->version, $row->version);
1919                  return false;                  return false;
1920              }              }
1921                            
1922              //Formatage du numéro de version              //Formatage du numéro de version
1923              $row['version'] = str_pad($row['version'], 2, "0", STR_PAD_LEFT);              $row->version = str_pad($row->version, 2, "0", STR_PAD_LEFT);
1924    
1925              //Alors on créé l'objet dossier_instruction              //Alors on créé l'objet dossier_instruction
1926              $this->specificMetadata = $row;              $this->specificMetadata = $row;

Legend:
Removed from v.2123  
changed lines
  Added in v.2124

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26