Update htdocs/fichinter/fiche.php

This commit is contained in:
defrance69 2012-03-14 22:09:06 +08:00 committed by Regis Houssin
parent a1085f9c9c
commit 7b20e15b23

View File

@ -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 ' &nbsp; <a href="'.DOL_DOCUMENT_ROOT.'/projet/fiche.php?socid='.$soc->id.'&action=create">'.$langs->trans("AddProject").'</a>';