From 6691bef701e8d8429fc9e2f92d76af57c7b1d6bf Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 31 Aug 2012 12:44:55 +0200 Subject: [PATCH] Fix: Start and end date not saved at project creation --- htdocs/projet/class/project.class.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/htdocs/projet/class/project.class.php b/htdocs/projet/class/project.class.php index fc3f7010454..9794417b44c 100644 --- a/htdocs/projet/class/project.class.php +++ b/htdocs/projet/class/project.class.php @@ -84,7 +84,7 @@ class Project extends CommonObject if (!trim($this->ref)) { $this->error = 'ErrorFieldsRequired'; - dol_syslog("Project::Create error -1 ref null", LOG_ERR); + dol_syslog(get_class($this)."::create error -1 ref null", LOG_ERR); return -1; } @@ -111,12 +111,12 @@ class Project extends CommonObject $sql.= ", 0"; $sql.= ", " . ($this->public ? 1 : 0); $sql.= ", " . ($this->datec != '' ? $this->db->idate($this->datec) : 'null'); - $sql.= ", " . ($this->dateo != '' ? $this->db->idate($this->dateo) : 'null'); - $sql.= ", " . ($this->datee != '' ? $this->db->idate($this->datee) : 'null'); + $sql.= ", " . ($this->date_start != '' ? $this->db->idate($this->date_start) : 'null'); + $sql.= ", " . ($this->date_end != '' ? $this->db->idate($this->date_end) : 'null'); $sql.= ", ".$conf->entity; $sql.= ")"; - dol_syslog("Project::create sql=" . $sql, LOG_DEBUG); + dol_syslog(get_class($this)."::create sql=" . $sql, LOG_DEBUG); $resql = $this->db->query($sql); if ($resql) { @@ -141,7 +141,7 @@ class Project extends CommonObject { $this->error = $this->db->lasterror(); $this->errno = $this->db->lasterrno(); - dol_syslog("Project::Create error -2 " . $this->error, LOG_ERR); + dol_syslog(get_class($this)."::create error -2 " . $this->error, LOG_ERR); $error++; }