From 31fd8c089b740612d94566efaa3a1c4a28827547 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 30 Sep 2022 09:24:25 +0200 Subject: [PATCH] FIX Link missing backtopage --- htdocs/core/lib/ticket.lib.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/htdocs/core/lib/ticket.lib.php b/htdocs/core/lib/ticket.lib.php index 79cc5980c16..51e4f3af382 100644 --- a/htdocs/core/lib/ticket.lib.php +++ b/htdocs/core/lib/ticket.lib.php @@ -664,6 +664,7 @@ function show_ticket_messaging($conf, $langs, $db, $filterobj, $objcon = '', $no $actualCycleDate = false; + // Loop on each event to show it foreach ($histo as $key => $value) { $actionstatic->fetch($histo[$key]['id']); // TODO Do we need this, we already have a lot of data of line into $histo @@ -702,14 +703,9 @@ function show_ticket_messaging($conf, $langs, $db, $filterobj, $objcon = '', $no $out .= $actionstatic->getNomUrl(1, -1, 'valignmiddle').' '; } - //if ($user->rights->agenda->allactions->read || $actionstatic->authorid == $user->id) - //{ - // $out.=''.$langs->trans('Show').''; - //} - if (!empty($user->rights->agenda->allactions->create) || (($actionstatic->authorid == $user->id || $actionstatic->userownerid == $user->id) && !empty($user->rights->agenda->myactions->create))) { - $out .= ''; + $out .= ''; } $out .= ''; @@ -880,6 +876,7 @@ function show_ticket_messaging($conf, $langs, $db, $filterobj, $objcon = '', $no $i++; } + $out .= "\n"; }