diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index b74d8f0398f..6da2a199fa7 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -398,7 +398,11 @@ if ($_GET['action'] == 'create' && $user->rights->commande->creer) if ($conf->projet->enabled) { print ''.$langs->trans('Project').''; - $html->select_projects($soc->id,$projetid,'projetid'); + $numprojet=$html->select_projects($soc->id,$projetid,'projetidp'); + if ($numprojet==0) + { + print '   id.'&action=create>'.$langs->trans("AddProject").''; + } print ''; }