Fix debug

This commit is contained in:
ldestailleur
2025-08-07 12:32:54 +02:00
parent 49a6995fa1
commit a19aaf8aa7
2 changed files with 3 additions and 5 deletions

View File

@@ -123,18 +123,18 @@ if (GETPOST('button_removefilter_x', 'alpha') || GETPOST('button_removefilter.x'
* View * View
*/ */
$form = new Form($db);
$agenda = (isModEnabled('agenda') && ($user->hasRight('agenda', 'myactions', 'read') || $user->hasRight('agenda', 'allactions', 'read'))) ? '/' . $langs->trans("Agenda") : ''; $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 $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 if (getDolGlobalString('MAIN_HTML_TITLE') && preg_match('/ordernamonly/', getDolGlobalString('MAIN_HTML_TITLE'))) { // Changed from projectnameonly
$title = $object->ref . ' - ' . $langs->trans("Info"); // Simplified title $title = $object->ref . ' - ' . $langs->trans("Info"); // Simplified title
} }
$help_url = "EN:Module_Orders|FR:Module_Propals|ES:Módulo_Pedidos"; // Changed help URL $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 llxHeader("", $title, $help_url, '', 0, 0, '', '', '', 'mod-order page-card_messaging'); // Changed mod-project
$head = propal_prepare_head($object); // Changed from project_prepare_head $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 // Order card
@@ -235,7 +235,7 @@ if (!empty($object->id)) {
$cachekey = 'count_events_order_' . $object->id; // Changed from project $cachekey = 'count_events_order_' . $object->id; // Changed from project
$nbEvent = dol_getcache($cachekey); $nbEvent = dol_getcache($cachekey);
$titlelist = $langs->trans("ActionsOnOrder") . (is_numeric($nbEvent) ? '<span class="opacitymedium colorblack paddingleft">(' . $nbEvent . ')</span>' : ''); // Changed from ActionsOnProject $titlelist = $langs->trans("ActionsOnPropal") . (is_numeric($nbEvent) ? '<span class="opacitymedium colorblack paddingleft">(' . $nbEvent . ')</span>' : ''); // Changed from ActionsOnProject
if (!empty($conf->dol_optimize_smallscreen)) { if (!empty($conf->dol_optimize_smallscreen)) {
$titlelist = $langs->trans("Actions") . (is_numeric($nbEvent) ? '<span class="opacitymedium colorblack paddingleft">(' . $nbEvent . ')</span>' : ''); $titlelist = $langs->trans("Actions") . (is_numeric($nbEvent) ? '<span class="opacitymedium colorblack paddingleft">(' . $nbEvent . ')</span>' : '');
} }

View File

@@ -16458,8 +16458,6 @@ function show_actions_messaging($conf, $langs, $db, $filterobj, $objcon = null,
} }
} }
print_r($sql);
if ($noprint) { if ($noprint) {
return $out; return $out;
} else { } else {