Skip to content

Commit

Permalink
Update ajax.php
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasalva87 committed Mar 24, 2022
1 parent 7492ecd commit 7172911
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions modules/dashboard/ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = [
Expand All @@ -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,
];
}
Expand Down

0 comments on commit 7172911

Please sign in to comment.