From 7b20e15b23b26cc486df24589b2f116d4ec7a1be Mon Sep 17 00:00:00 2001 From: defrance69 <charles.fr@benke.fr> Date: Wed, 14 Mar 2012 22:09:06 +0800 Subject: [PATCH] Update htdocs/fichinter/fiche.php --- htdocs/fichinter/fiche.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/htdocs/fichinter/fiche.php b/htdocs/fichinter/fiche.php index 28b9fc49260..c381fe14b94 100644 --- a/htdocs/fichinter/fiche.php +++ b/htdocs/fichinter/fiche.php @@ -693,9 +693,13 @@ if ($action == 'create') if ($conf->projet->enabled) { $langs->load("project"); - + print '<tr><td valign="top">'.$langs->trans("Project").'</td><td>'; - $numprojet=select_projects($soc->id,GETPOST('projectid','int'),'projectid'); + if ($societe->fournisseur==1) + $numprojet=select_projects(-1,$_POST["projectid"],'projectid'); + else + $numprojet=select_projects($societe->id,$_POST["projectid"],'projectid'); + //$numprojet=select_projects($soc->id,GETPOST('projectid','int'),'projectid'); if ($numprojet==0) { print ' <a href="'.DOL_DOCUMENT_ROOT.'/projet/fiche.php?socid='.$soc->id.'&action=create">'.$langs->trans("AddProject").'</a>'; -- GitLab