Rename page of agenda to follow same naming than other elements

This commit is contained in:
Laurent Destailleur
2022-10-25 19:39:59 +02:00
parent fa4029a142
commit 1e8f5b4753
4 changed files with 6 additions and 5 deletions

View File

@@ -11470,6 +11470,7 @@ function getActionCommEcmList($object)
}
/**
* Show html area with actions in messaging format.
* Note: Global parameter $param must be defined.
@@ -11766,7 +11767,7 @@ function show_actions_messaging($conf, $langs, $db, $filterobj, $objcon = '', $n
}
}
// Set $out to sow events
// Set $out to show events
$out = '';
if (!isModEnabled('agenda')) {

View File

@@ -311,7 +311,7 @@ function project_prepare_head(Project $project, $moreparam = '')
$h++;
}
$head[$h][0] = DOL_URL_ROOT.'/projet/info.php?id='.$project->id;
$head[$h][0] = DOL_URL_ROOT.'/projet/messaging.php?id='.$project->id;
$head[$h][1] = $langs->trans("Events");
if (isModEnabled('agenda') && (!empty($user->rights->agenda->myactions->read) || !empty($user->rights->agenda->allactions->read))) {
$head[$h][1] .= '/';

View File

@@ -17,7 +17,7 @@
*/
/**
* \file htdocs/projet/info.php
* \file htdocs/projet/agenda.php
* \ingroup project
* \brief Page with events on project
*/

View File

@@ -132,7 +132,7 @@ $morehtmlref = '<div class="refidno">';
$morehtmlref .= $object->title;
// Thirdparty
if (!empty($object->thirdparty->id) && $object->thirdparty->id > 0) {
$morehtmlref .= '<br>'.$langs->trans('ThirdParty').' : '.$object->thirdparty->getNomUrl(1, 'project');
$morehtmlref .= '<br>'.$object->thirdparty->getNomUrl(1, 'project');
}
$morehtmlref .= '</div>';
@@ -180,7 +180,7 @@ if (!empty($object->id)) {
$morehtmlcenter .= dolGetButtonTitle($langs->trans('ShowAsConversation'), '', 'fa fa-comments imgforviewmode', $messagingUrl, '', 2);
// Show link to change view in agenda
$messagingUrl = DOL_URL_ROOT.'/projet/info.php?id='.$object->id;
$messagingUrl = DOL_URL_ROOT.'/projet/agenda.php?id='.$object->id;
$morehtmlcenter .= dolGetButtonTitle($langs->trans('MessageListViewType'), '', 'fa fa-bars imgforviewmode', $messagingUrl, '', 1);