no message

This commit is contained in:
StudioTem committed 2025-12-16 17:25:19 +01:00
1 parent e4e7dbb741
commit 15a8e9f98b
8 files changed
+30 -9

No files matched your search

+5 -1
View File
@@ -42,11 +42,15 @@ class NewTask extends Mailable
*/
public function envelope()
{
$project = $this->subtask->mastertask?->project;
$projectCode = $project?->code ?? 'N/A';
$projectName = $project?->name ?? '';
return new Envelope(
replyTo: [
new Address($this->creator->email, ($this->creator) ? $this->creator->firstname . ' ' . $this->creator->lastname : ''),
],
subject: $this->subtask->mastertask->project->code . ' ' . $this->subtask->mastertask->project->name . ' - vytvorený Sub Task',
subject: $projectCode . ' ' . $projectName . ' - vytvorený Sub Task',
);
}