mirror of
https://github.com/devcode-it/openstamanager.git
synced 2024-12-27 08:12:47 +01:00
Miglioria minore widget note interne
This commit is contained in:
parent
5fe1a5cf59
commit
bff63e4b5c
@ -32,7 +32,7 @@ $notes = collect();
|
||||
|
||||
$moduli = Module::getAll()->where('permission', '<>', '-');
|
||||
foreach ($moduli as $modulo) {
|
||||
$note = $modulo->notes()->where('notification_date', '>=', date('Y-m-d'))->get();
|
||||
$note = $modulo->notes()->whereNotNull('notification_date')->orderBy('notification_date', 'asc')->get();
|
||||
$notes = $notes->merge($note);
|
||||
}
|
||||
|
||||
@ -42,7 +42,7 @@ if (!empty($is_number_request)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (empty($notes)) {
|
||||
if ($notes->count() < 1) {
|
||||
echo '
|
||||
<p>'.tr('Non ci sono note da notificare').'.</p>';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user