testFiltro "tutti" sui promemoria in dashboard

This commit is contained in:
Beppe 2023-04-13 10:45:50 +02:00
parent 0bb62c3694
commit 0631684dbd
2 changed files with 3 additions and 2 deletions

View File

@ -438,7 +438,7 @@ switch (filter('op')) {
// Elenco interventi da pianificare
foreach ($promemoria as $sessione) {
if ($sessione['mese'] == $mese) {
if ($sessione['mese'] == $mese || $mese == 'all') {
if (date('Ymd', strtotime($sessione['data_scadenza'])) < date('Ymd') and !empty($sessione['data_scadenza'])) {
$class = 'danger';
} else {

View File

@ -307,7 +307,8 @@ WHERE (SELECT COUNT(*) FROM in_interventi_tecnici WHERE in_interventi_tecnici.id
->sortBy('data');
echo '
<select class="superselect openstamanager-input select-input" id="mese-promemoria">';
<select class="superselect openstamanager-input select-input" id="mese-promemoria">
<option value="all">'.tr('Tutti').'</option>';
foreach ($mesi as $mese) {
$data = Carbon::parse($mese['data']);