Fix: le projet n'était pas récupéré à la création d'un commande

This commit is contained in:
Regis Houssin 2006-05-27 13:13:44 +00:00
parent 727a738360
commit 136bd45f6d
2 changed files with 4 additions and 3 deletions

View File

@ -43,6 +43,7 @@ class Commande
var $id ;
var $socidp;
var $contactid;
var $projet_id;
var $statut;
var $facturee;
var $brouillon;

View File

@ -616,7 +616,7 @@ if ($_GET['action'] == 'create' && $user->rights->commande->creer)
if ($conf->projet->enabled)
{
print '<tr><td>'.$langs->trans('Project').'</td><td>';
$numprojet=$html->select_projects($soc->id,$projetid,'projetidp');
$numprojet=$html->select_projects($soc->id,$projetid,'projetid');
if ($numprojet==0)
{
print ' &nbsp; <a href=../projet/fiche.php?socidp='.$soc->id.'&action=create>'.$langs->trans("AddProject").'</a>';