From c8cd2d6293083db8f45b4dd2fa4fc16ce8118b65 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 24 Apr 2006 11:00:14 +0000 Subject: [PATCH] =?UTF-8?q?ajout=20possibilit=E9=20de=20cr=E9er=20un=20pro?= =?UTF-8?q?jet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/commande/fiche.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 ''; }