From 3778d206ac7c8dbceb365a6207ef793995554f53 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 3 Aug 2012 19:05:49 +0200 Subject: [PATCH] Fix: project validation --- htdocs/projet/class/project.class.php | 1 + htdocs/projet/fiche.php | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/htdocs/projet/class/project.class.php b/htdocs/projet/class/project.class.php index a60609d32d0..9e47dd845ea 100644 --- a/htdocs/projet/class/project.class.php +++ b/htdocs/projet/class/project.class.php @@ -543,6 +543,7 @@ class Project extends CommonObject if (!$error) { + $this->statut=1; $this->db->commit(); return 1; } diff --git a/htdocs/projet/fiche.php b/htdocs/projet/fiche.php index f5dcfecf19a..9e613b06701 100644 --- a/htdocs/projet/fiche.php +++ b/htdocs/projet/fiche.php @@ -405,7 +405,7 @@ else print '
'; print ''; print ''; - print ''; + print ''; print ''; @@ -419,7 +419,7 @@ else // Customer print ''; @@ -435,7 +435,7 @@ else // Date start print ''; // Date end
'.$langs->trans("Company").''; - $text=$form->select_company($project->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 '
'.$langs->trans("DateStart").''; - print $form->select_date($project->date_start,'project'); + print $form->select_date($object->date_start,'project'); print '