wip special days alerts

This commit is contained in:
Daniel Barbero Martin 2021-11-04 10:10:11 +01:00
parent bd75912a0d
commit f521dec4e2
2 changed files with 18 additions and 16 deletions

View File

@ -644,6 +644,7 @@ class CalendarManager
);
$tmp->options .= '</a>';
if ($tmp->id != 1) {
// Options. Delete.
$tmp->options .= '<a href="';
$tmp->options .= ui_get_full_url(
@ -660,6 +661,7 @@ class CalendarManager
);
$tmp->options .= '</a>';
}
}
$carry[] = $tmp;
return $carry;

View File

@ -105,7 +105,7 @@ $inputs[] = [
'name' => 'day_code',
'type' => 'select',
'fields' => $days,
'selected' => $specialDay->day_code(),
'selected' => ($specialDay->day_code() === null) ? 1 : $specialDay->day_code(),
],
];