From 71729113c170ef70bef409b8f42b14d8c4039513 Mon Sep 17 00:00:00 2001 From: Luca Date: Thu, 24 Mar 2022 16:51:39 +0100 Subject: [PATCH] Update ajax.php --- modules/dashboard/ajax.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/dashboard/ajax.php b/modules/dashboard/ajax.php index 56e8ad3d3..23cce788f 100644 --- a/modules/dashboard/ajax.php +++ b/modules/dashboard/ajax.php @@ -95,11 +95,11 @@ $results = []; foreach ($sessioni as $sessione) { if (setting('Visualizzazione colori sessioni') == 'Sfondo colore stato - bordo colore tecnico') { - $backgroundcolor = $sessione['colore']; - $bordercolor = $sessione['colore_tecnico']; + $backgroundcolor = strtoupper($sessione['colore']); + $bordercolor = strtoupper($sessione['colore_tecnico']); } else { - $backgroundcolor = $sessione['colore_tecnico']; - $bordercolor = $sessione['colore']; + $backgroundcolor = strtoupper($sessione['colore_tecnico']); + $bordercolor = strtoupper($sessione['colore']); } $results[] = [ @@ -112,7 +112,7 @@ 'link' => base_path().'/editor.php?id_module='.$modulo_interventi->id.'&id_record='.$sessione['idintervento'], 'backgroundColor' => $backgroundcolor, 'textColor' => color_inverse($backgroundcolor), - 'borderColor' => ($bordercolor == '#FFFFFF') ? color_darken($bordercolor, 100) : $bordercolor, + 'borderColor' => empty($bordercolor) ? '#FFFFFF' : $bordercolor, 'allDay' => false, ]; }