feat: Enhance email reminder content by including client name in task notifications

This commit is contained in:
2025-04-22 11:38:08 +02:00
parent 858b40c212
commit 01f723facf

View File

@@ -165,7 +165,7 @@ class Cron
$text = '<p>Witaj.</p>' .
'<p>Otrzymałeś ten email z powodu ustawionego przypomnienia. Poniżej znajdziesz jego treść.</p>' .
'<p>---------------------------------------------------------------------------------------</p>' .
'<p><b>' . $row['name'] . '</b> (termin zadania: <b>' . $date . ')</b></p>' .
'<p><b>' . $row['name'] . ( $row['client_id'] ? ' / ' . \factory\Crm::get_client_name( $row['client_id'] ) : '' ) . '</b> (termin zadania: <b>' . $date . ')</b></p>' .
'<p><i>' . \factory\Crm::get_client_name( (int)$task['client_id'] ) . '</i></p>' .
'<p>' . htmlspecialchars_decode( $row['text'] ) . '</p>';