Fix: Start and end date not saved at project creation

Conflicts:
	htdocs/projet/class/project.class.php
This commit is contained in:
Laurent Destailleur 2012-08-31 12:55:10 +02:00
parent f21fda248b
commit 27846d1698
2 changed files with 3 additions and 3 deletions

View File

@ -1010,7 +1010,7 @@ else if (($action == 'addline' || $action == 'addline_predef') && $user->rights-
{
$pu_ht=price2num($price_ht, 'MU');
$pu_ttc=price2num(GETPOST('price_ttc'), 'MU');
$tva_npr=(preg_match('/\*/', $tva_tx))?1:0);
$tva_npr=(preg_match('/\*/', $tva_tx)?1:0);
$tva_tx=str_replace('*','', $tva_tx);
$desc = $product_desc;
}

View File

@ -82,7 +82,7 @@ class Project extends CommonObject
if (!trim($this->ref))
{
$this->error = 'ErrorFieldsRequired';
dol_syslog(get_class($this)."::Create error -1 ref null", LOG_ERR);
dol_syslog(get_class($this)."::create error -1 ref null", LOG_ERR);
return -1;
}
@ -139,7 +139,7 @@ class Project extends CommonObject
{
$this->error = $this->db->lasterror();
$this->errno = $this->db->lasterrno();
dol_syslog(get_class($this)."::Create error -2 " . $this->error, LOG_ERR);
dol_syslog(get_class($this)."::create error -2 " . $this->error, LOG_ERR);
$error++;
}