From 9d903a709e523195d5c232b2646d2e3e5f5aab67 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 18 May 2011 11:55:41 +0000 Subject: [PATCH] Fix: Don't loose dates if creation fails --- htdocs/projet/tasks.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/htdocs/projet/tasks.php b/htdocs/projet/tasks.php index 0a93cc34e5f..f6d40753fd3 100644 --- a/htdocs/projet/tasks.php +++ b/htdocs/projet/tasks.php @@ -46,6 +46,9 @@ $userAccess=0; $langs->load("users"); $langs->load("projects"); +$progress=GETPOST('progress'); +$description=GETPOST('description'); + /* * Actions @@ -188,13 +191,13 @@ if ($_GET["action"] == 'create' && $user->rights->projet->creer && (empty($proje // Progress print ''.$langs->trans("Progress").''; - print $formother->select_percent($task->progress,'progress'); + print $formother->select_percent($progress,'progress'); print ''; // Description print ''.$langs->trans("Description").''; print ''; - print ''; + print ''; print ''; print '';