Fix: Project id was not read correctly

This commit is contained in:
Laurent Destailleur 2010-02-27 13:44:51 +00:00
parent 8f5b925603
commit b02fcaf835
2 changed files with 2 additions and 1 deletions

View File

@ -524,6 +524,7 @@ class CommonObject
dol_syslog("CommonObject::setProject sql=".$sql); dol_syslog("CommonObject::setProject sql=".$sql);
if ($this->db->query($sql)) if ($this->db->query($sql))
{ {
$this->project_id=$projid;
$this->projet_id=$projid; $this->projet_id=$projid;
$this->projetidp=$projid; $this->projetidp=$projid;
return 1; return 1;

View File

@ -615,7 +615,7 @@ elseif ($fichinterid)
print '</td><td colspan="3">'; print '</td><td colspan="3">';
if ($_GET['action'] == 'classin') 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 else
{ {