Fix: Start and end date not saved at project creation
Conflicts: htdocs/projet/class/project.class.php
This commit is contained in:
parent
f21fda248b
commit
27846d1698
@ -1010,7 +1010,7 @@ else if (($action == 'addline' || $action == 'addline_predef') && $user->rights-
|
|||||||
{
|
{
|
||||||
$pu_ht=price2num($price_ht, 'MU');
|
$pu_ht=price2num($price_ht, 'MU');
|
||||||
$pu_ttc=price2num(GETPOST('price_ttc'), '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);
|
$tva_tx=str_replace('*','', $tva_tx);
|
||||||
$desc = $product_desc;
|
$desc = $product_desc;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -82,7 +82,7 @@ class Project extends CommonObject
|
|||||||
if (!trim($this->ref))
|
if (!trim($this->ref))
|
||||||
{
|
{
|
||||||
$this->error = 'ErrorFieldsRequired';
|
$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;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -139,7 +139,7 @@ class Project extends CommonObject
|
|||||||
{
|
{
|
||||||
$this->error = $this->db->lasterror();
|
$this->error = $this->db->lasterror();
|
||||||
$this->errno = $this->db->lasterrno();
|
$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++;
|
$error++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user