Debug v20

This commit is contained in:
Laurent Destailleur 2024-09-03 14:38:09 +02:00
parent b6e87ae519
commit dd930e2d4b
2 changed files with 5 additions and 3 deletions

View file

@ -63,7 +63,7 @@ class box_scheduled_jobs extends ModeleBoxes
global $user, $langs, $conf, $form;
$langs->load("cron");
$this->info_box_head = array('text' => $langs->trans("BoxScheduledJobs", $max));
$this->info_box_head = array('text' => $langs->trans("BoxScheduledJobs", $max), 'nbcol' => 4);
if ($user->hasRight('cron', 'read')) {
include_once DOL_DOCUMENT_ROOT . '/cron/class/cronjob.class.php';
@ -158,6 +158,8 @@ class box_scheduled_jobs extends ModeleBoxes
);
$line++;
}
// Line nb job in error
$this->info_box_contents[$line][] = array(
'td' => 'class="tdoverflowmax300" colspan="3"',
'text' => $langs->trans("NumberScheduledJobError")

View file

@ -45,7 +45,7 @@ class ModeleBoxes // Can't be abstract as it is instantiated to build "empty" bo
public $param;
/**
* @var array box info heads
* @var array box info heads. Example: array('text' => $langs->trans("BoxScheduledJobs", $max), 'nbcol' => 4);
*/
public $info_box_head = array();
@ -232,7 +232,7 @@ class ModeleBoxes // Can't be abstract as it is instantiated to build "empty" bo
$out .= '<div class="box divboxtable boxdraggable" id="boxto_'.$this->box_id.'">'."\n";
if (!empty($head['text']) || !empty($head['sublink']) || !empty($head['subpicto']) || $nblines) {
$out .= '<table summary="boxtable'.$this->box_id.'" width="100%" class="noborder boxtable">'."\n";
$out .= '<table summary="boxtable'.$this->box_id.'" class="noborder boxtable centpercent">'."\n";
}
// Show box title