From 1307c779003b2655665e60eeba5c6b85942d139e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@destailleur.fr> Date: Fri, 3 Aug 2012 19:05:20 +0200 Subject: [PATCH] Fix: Project validation --- htdocs/projet/class/project.class.php | 3 ++- htdocs/projet/fiche.php | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/htdocs/projet/class/project.class.php b/htdocs/projet/class/project.class.php index d703039489b..bde9bb72bfa 100644 --- a/htdocs/projet/class/project.class.php +++ b/htdocs/projet/class/project.class.php @@ -541,7 +541,8 @@ class Project extends CommonObject if (!$error) { - $this->db->commit(); + $this->statut=1; + $this->db->commit(); return 1; } else diff --git a/htdocs/projet/fiche.php b/htdocs/projet/fiche.php index f5ea9ef0426..70cdceffff1 100644 --- a/htdocs/projet/fiche.php +++ b/htdocs/projet/fiche.php @@ -314,7 +314,7 @@ if ($action == 'confirm_clone' && $user->rights->projet->creer && GETPOST('confi } else { - $object->id=$result; + $object->fetch($result); // Load new object $action='edit'; $comefromclone=true; } @@ -494,7 +494,9 @@ else // Customer print '<tr><td>'.$langs->trans("Company").'</td><td>'; - print $form->select_company($object->societe->id,'socid','',1,1); + $text=$form->select_company($object->societe->id,'socid','',1,1); + $texthelp=$langs->trans("IfNeedToUseOhterObjectKeepEmpty"); + print $form->textwithtooltip($text.' '.img_help(),$texthelp,1); print '</td></tr>'; // Visibility -- GitLab