diff --git a/htdocs/comm/propal/messaging.php b/htdocs/comm/propal/messaging.php
index 16963746dc6..f4d00ff504f 100644
--- a/htdocs/comm/propal/messaging.php
+++ b/htdocs/comm/propal/messaging.php
@@ -123,18 +123,18 @@ if (GETPOST('button_removefilter_x', 'alpha') || GETPOST('button_removefilter.x'
* View
*/
-$form = new Form($db);
$agenda = (isModEnabled('agenda') && ($user->hasRight('agenda', 'myactions', 'read') || $user->hasRight('agenda', 'allactions', 'read'))) ? '/' . $langs->trans("Agenda") : '';
$title = $langs->trans('Events') . $agenda . ' - ' . $object->ref; // Removed $object->name as orders typically don't have it
if (getDolGlobalString('MAIN_HTML_TITLE') && preg_match('/ordernamonly/', getDolGlobalString('MAIN_HTML_TITLE'))) { // Changed from projectnameonly
$title = $object->ref . ' - ' . $langs->trans("Info"); // Simplified title
}
$help_url = "EN:Module_Orders|FR:Module_Propals|ES:Módulo_Pedidos"; // Changed help URL
+
llxHeader("", $title, $help_url, '', 0, 0, '', '', '', 'mod-order page-card_messaging'); // Changed mod-project
$head = propal_prepare_head($object); // Changed from project_prepare_head
-print dol_get_fiche_head($head, 'agenda', $langs->trans("Order"), -1, 'order'); // Changed "Project" and "projectpub"
+print dol_get_fiche_head($head, 'agenda', $title, -1, 'order'); // Changed "Project" and "projectpub"
// Order card
@@ -235,7 +235,7 @@ if (!empty($object->id)) {
$cachekey = 'count_events_order_' . $object->id; // Changed from project
$nbEvent = dol_getcache($cachekey);
- $titlelist = $langs->trans("ActionsOnOrder") . (is_numeric($nbEvent) ? '(' . $nbEvent . ')' : ''); // Changed from ActionsOnProject
+ $titlelist = $langs->trans("ActionsOnPropal") . (is_numeric($nbEvent) ? '(' . $nbEvent . ')' : ''); // Changed from ActionsOnProject
if (!empty($conf->dol_optimize_smallscreen)) {
$titlelist = $langs->trans("Actions") . (is_numeric($nbEvent) ? '(' . $nbEvent . ')' : '');
}
diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php
index 33d0d1a66af..fd81560491d 100644
--- a/htdocs/core/lib/functions.lib.php
+++ b/htdocs/core/lib/functions.lib.php
@@ -16458,8 +16458,6 @@ function show_actions_messaging($conf, $langs, $db, $filterobj, $objcon = null,
}
}
- print_r($sql);
-
if ($noprint) {
return $out;
} else {