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 '
| '.$langs->trans("Project").' | ';
- $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 ' '.$langs->trans("AddProject").'';
|