From 667c9045a24ac09f758d6ffd3adcdab3549f50ae Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 26 Feb 2018 10:33:39 +0100 Subject: [PATCH] FIX duplicate confirm message. Missing reposition class --- htdocs/projet/tasks/time.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/projet/tasks/time.php b/htdocs/projet/tasks/time.php index ce2e1c32889..7dc9fe10930 100644 --- a/htdocs/projet/tasks/time.php +++ b/htdocs/projet/tasks/time.php @@ -602,7 +602,7 @@ if (($id > 0 || ! empty($ref)) || $projectidforalltimes > 0) if ($projectstatic->id > 0) { - if ($action == 'deleteline') + if ($action == 'deleteline' && ! empty($projectidforalltimes)) { print $form->formconfirm($_SERVER["PHP_SELF"]."?id=".$object->id.'&lineid='.$_GET["lineid"].($withproject?'&withproject=1':''),$langs->trans("DeleteATimeSpent"),$langs->trans("ConfirmDeleteATimeSpent"),"confirm_delete",'','',1); } @@ -976,12 +976,12 @@ if (($id > 0 || ! empty($ref)) || $projectidforalltimes > 0) if ($task_time->fk_user == $user->id || in_array($task_time->fk_user, $childids) || $user->rights->projet->all->creer) { print ' '; - print 'rowid.($withproject?'&withproject=1':'').'">'; + print 'rowid.($withproject?'&withproject=1':'').'">'; print img_edit(); print ''; print ' '; - print 'rowid.($withproject?'&withproject=1':'').'">'; + print 'rowid.($withproject?'&withproject=1':'').'">'; print img_delete(); print ''; }