From b02fcaf8356d0ef6d47a5455578f0d8009bf4f7e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 27 Feb 2010 13:44:51 +0000 Subject: [PATCH] Fix: Project id was not read correctly --- htdocs/commonobject.class.php | 1 + htdocs/fichinter/fiche.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 ''; if ($_GET['action'] == 'classin') { - $html->form_project($_SERVER['PHP_SELF'].'?id='.$fichinter->id, $fichinter->socid, $fichinter->project_id,'projetid'); + $html->form_project($_SERVER['PHP_SELF'].'?id='.$fichinter->id, $fichinter->socid, $fichinter->project_id,'projectid'); } else {