diff --git a/htdocs/commonobject.class.php b/htdocs/commonobject.class.php index dbf221ddb24..4c9c74781b6 100644 --- a/htdocs/commonobject.class.php +++ b/htdocs/commonobject.class.php @@ -524,6 +524,7 @@ class CommonObject dol_syslog("CommonObject::setProject sql=".$sql); if ($this->db->query($sql)) { + $this->project_id=$projid; $this->projet_id=$projid; $this->projetidp=$projid; return 1; diff --git a/htdocs/fichinter/fiche.php b/htdocs/fichinter/fiche.php index 736c943f240..d6c041b8b39 100644 --- a/htdocs/fichinter/fiche.php +++ b/htdocs/fichinter/fiche.php @@ -615,7 +615,7 @@ elseif ($fichinterid) print '