diff --git a/htdocs/core/boxes/box_scheduled_jobs.php b/htdocs/core/boxes/box_scheduled_jobs.php index 539781c0da9..dd2749c9451 100644 --- a/htdocs/core/boxes/box_scheduled_jobs.php +++ b/htdocs/core/boxes/box_scheduled_jobs.php @@ -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") diff --git a/htdocs/core/boxes/modules_boxes.php b/htdocs/core/boxes/modules_boxes.php index ea727fbf289..bec3761a329 100644 --- a/htdocs/core/boxes/modules_boxes.php +++ b/htdocs/core/boxes/modules_boxes.php @@ -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 .= '
'."\n"; if (!empty($head['text']) || !empty($head['sublink']) || !empty($head['subpicto']) || $nblines) { - $out .= ''."\n"; + $out .= '
'."\n"; } // Show box title