Skip to content

Commit

Permalink
Fixed Contrat::fetch not setting Contrat::date_creation and improved …
Browse files Browse the repository at this point in the history
…class doc
  • Loading branch information
marcosgdf committed Dec 28, 2014
1 parent cd468b6 commit 52b8bb3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions htdocs/contrat/class/contrat.class.php
Expand Up @@ -140,8 +140,13 @@ class Contrat extends CommonObject
var $note_public;
var $modelpdf;

/**
* @deprecated Use fk_project instead
*/
var $fk_projet;

public $fk_project;

var $extraparams=array();

var $lines=array();
Expand Down Expand Up @@ -508,7 +513,9 @@ function fetch($id,$ref='')
$this->ref_ext = $result["ref_ext"];
$this->statut = $result["statut"];
$this->mise_en_service = $this->db->jdate($result["datemise"]);

$this->date_contrat = $this->db->jdate($result["datecontrat"]);
$this->date_creation = $this->db->jdate($result["datecontrat"]);

$this->user_author_id = $result["fk_user_author"];

Expand Down

0 comments on commit 52b8bb3

Please sign in to comment.