FIX Link missing backtopage
This commit is contained in:
parent
0ff7b1f8a6
commit
31fd8c089b
@ -664,6 +664,7 @@ function show_ticket_messaging($conf, $langs, $db, $filterobj, $objcon = '', $no
|
|||||||
|
|
||||||
$actualCycleDate = false;
|
$actualCycleDate = false;
|
||||||
|
|
||||||
|
// Loop on each event to show it
|
||||||
foreach ($histo as $key => $value) {
|
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
|
$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').' ';
|
$out .= $actionstatic->getNomUrl(1, -1, 'valignmiddle').' ';
|
||||||
}
|
}
|
||||||
|
|
||||||
//if ($user->rights->agenda->allactions->read || $actionstatic->authorid == $user->id)
|
|
||||||
//{
|
|
||||||
// $out.='<a href="'.$url.'" class="timeline-btn" title="'.$langs->trans('Show').'" ><i class="fa fa-calendar" ></i>'.$langs->trans('Show').'</a>';
|
|
||||||
//}
|
|
||||||
|
|
||||||
if (!empty($user->rights->agenda->allactions->create) ||
|
if (!empty($user->rights->agenda->allactions->create) ||
|
||||||
(($actionstatic->authorid == $user->id || $actionstatic->userownerid == $user->id) && !empty($user->rights->agenda->myactions->create))) {
|
(($actionstatic->authorid == $user->id || $actionstatic->userownerid == $user->id) && !empty($user->rights->agenda->myactions->create))) {
|
||||||
$out .= '<a class="timeline-btn" href="'.DOL_MAIN_URL_ROOT.'/comm/action/card.php?action=edit&token='.newToken().'&id='.$actionstatic->id.'"><i class="fa fa-pencil" title="'.$langs->trans("Modify").'" ></i></a>';
|
$out .= '<a class="timeline-btn" href="'.DOL_MAIN_URL_ROOT.'/comm/action/card.php?action=edit&token='.newToken().'&id='.$actionstatic->id.'&backtopage='.urlencode($_SERVER["PHP_SELF"].'?'.$param).'"><i class="fa fa-pencil" title="'.$langs->trans("Modify").'" ></i></a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
$out .= '</span>';
|
$out .= '</span>';
|
||||||
@ -880,6 +876,7 @@ function show_ticket_messaging($conf, $langs, $db, $filterobj, $objcon = '', $no
|
|||||||
|
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
$out .= "</ul>\n";
|
$out .= "</ul>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user