From 3a8885eea65f75c4faa156b9f81923dbaca4cf4f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 15 Mar 2012 09:36:39 +0100 Subject: [PATCH] Fix: If a project must be linked to any companies (suppliers or not), project must be not be set as limited to customer but must be not linked to any particular thirdparty --- htdocs/fichinter/fiche.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/htdocs/fichinter/fiche.php b/htdocs/fichinter/fiche.php index c381fe14b94..e618463fef9 100644 --- a/htdocs/fichinter/fiche.php +++ b/htdocs/fichinter/fiche.php @@ -693,13 +693,15 @@ if ($action == 'create') if ($conf->projet->enabled) { $langs->load("project"); - + print ''.$langs->trans("Project").''; + /* Fix: If a project must be linked to any companies (suppliers or not), project must be not be set as limited to customer but must be not linked to any particular thirdparty 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'); + */ + $numprojet=select_projects($soc->id,GETPOST('projectid','int'),'projectid'); if ($numprojet==0) { print '   '.$langs->trans("AddProject").'';