Skip to content

Commit

Permalink
NEW: Add Task Status to Comment
Browse files Browse the repository at this point in the history
- Mention that the task has been closed (for audit purposes)
  • Loading branch information
aljawaid committed Jan 18, 2023
1 parent c5c0c87 commit 410b161
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions Action/EmailTaskHistory.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public function doAction(array $data)

// Add comment to task to show an email has been fired
$this->commentModel->create( array(
'comment' => t('A copy of the task history has been emailed to @'.$user['username'].' (Task Assignee) [Subject: '. $subject .']'),
'comment' => t('TASK CLOSED: A copy of the task history has been emailed to @'.$user['username'].' (Task Assignee) [Subject: '. $subject .']'),
'user_id' => $user['id'],
'task_id' => $data['task']['id'],
));
Expand Down Expand Up @@ -176,7 +176,7 @@ public function doAction(array $data)

// Add comment to task to show an email has been fired
$this->commentModel->create( array(
'comment' => t('A copy of the task history has been emailed to @'.$user['username'].' (Task Creator) [Subject: '. $subject .']'),
'comment' => t('TASK CLOSED: A copy of the task history has been emailed to @'.$user['username'].' (Task Creator) [Subject: '. $subject .']'),
'user_id' => $user['id'],
'task_id' => $data['task']['id'],
));
Expand Down Expand Up @@ -214,7 +214,7 @@ public function doAction(array $data)

// Add comment to task to show an email has been fired
$this->commentModel->create( array(
'comment' => t('A copy of the task history has been emailed to the project email address [Subject: '. $subject .']'),
'comment' => t('TASK CLOSED: A copy of the task history has been emailed to the project email address [Subject: '. $subject .']'),
'user_id' => $user['id'],
'task_id' => $data['task']['id'],
));
Expand Down
6 changes: 3 additions & 3 deletions Locale/de_DE/translations.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
'Include the Task Title and ID in subject line?' => 'Den Aufgabentitel und die ID in die Betreffzeile aufnehmen?',
'Include the Project Name in the subject line?' => 'Den Projektnamen in die Betreffzeile aufnehmen?',
'Include the Project Identifier in the subject line?' => 'Die Projektkennung in die Betreffzeile aufnehmen?',
'A copy of the task history has been emailed to @%s (Task Assignee) [Subject: %s]' => 'Eine Kopie des Aufgabenverlaufs wurde per E-Mail an @%s (Aufgabenverantwortlicher) [Gegenstand: %s] gesendet.',
'A copy of the task history has been emailed to @%s (Task Creator) [Subject: %s]' => 'Eine Kopie des Aufgabenverlaufs wurde per E-Mail an @%s (Aufgabenersteller) [Gegenstand: %s] gesendet.',
'A copy of the task history has been emailed to the project email address [Subject: %s]' => 'Eine Kopie des Aufgabenverlaufs wurde per E-Mail an die E-Mail-Adresse des Projekts [Gegenstand: %s] gesendet',
'TASK CLOSED: A copy of the task history has been emailed to @%s (Task Assignee) [Subject: %s]' => 'AUFGABE GESCHLOSSEN: Eine Kopie des Aufgabenverlaufs wurde per E-Mail an @%s (Aufgabenverantwortlicher) [Gegenstand: %s] gesendet.',
'TASK CLOSED: A copy of the task history has been emailed to @%s (Task Creator) [Subject: %s]' => 'AUFGABE GESCHLOSSEN: Eine Kopie des Aufgabenverlaufs wurde per E-Mail an @%s (Aufgabenersteller) [Gegenstand: %s] gesendet.',
'TASK CLOSED: A copy of the task history has been emailed to the project email address [Subject: %s]' => 'AUFGABE GESCHLOSSEN: Eine Kopie des Aufgabenverlaufs wurde per E-Mail an die E-Mail-Adresse des Projekts [Gegenstand: %s] gesendet',
//
// action_creation/params.php
//
Expand Down
6 changes: 3 additions & 3 deletions Locale/en_GB/translations.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
'Include the Task Title and ID in subject line?' => 'Include the Task Title and ID in the subject line?',
'Include the Project Name in the subject line?' => 'Include the Project Name in the subject line?',
'Include the Project Identifier in the subject line?' => 'Include the Project Identifier in the subject line?',
'A copy of the task history has been emailed to @%s (Task Assignee) [Subject: %s]' => 'A copy of the task history has been emailed to @%s (Task Assignee) [Subject: %s]',
'A copy of the task history has been emailed to @%s (Task Creator) [Subject: %s]' => 'A copy of the task history has been emailed to @%s (Task Creator) [Subject: %s]',
'A copy of the task history has been emailed to the project email address [Subject: %s]' => 'A copy of the task history has been emailed to the project email address [Subject: %s]',
'TASK CLOSED: A copy of the task history has been emailed to @%s (Task Assignee) [Subject: %s]' => 'TASK CLOSED: A copy of the task history has been emailed to @%s (Task Assignee) [Subject: %s]',
'TASK CLOSED: A copy of the task history has been emailed to @%s (Task Creator) [Subject: %s]' => 'TASK CLOSED: A copy of the task history has been emailed to @%s (Task Creator) [Subject: %s]',
'TASK CLOSED: A copy of the task history has been emailed to the project email address [Subject: %s]' => 'TASK CLOSED: A copy of the task history has been emailed to the project email address [Subject: %s]',
//
// action_creation/params.php
//
Expand Down
6 changes: 3 additions & 3 deletions Locale/fr_FR/translations.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
'Include the Task Title and ID in subject line?' => 'Inclure le titre et l\'ID de la tâche dans la ligne d\'objet?',
'Include the Project Name in the subject line?' => 'Inclure le nom du projet dans la ligne d\'objet?',
'Include the Project Identifier in the subject line?' => 'Inclure l\'identifiant du projet dans la ligne d\'objet?',
'A copy of the task history has been emailed to @%s (Task Assignee) [Subject: %s]' => 'Une copie de l\'historique de la tâche a été envoyée par e-mail à @%s (chargé de la tâche) [Sujet: %s]',
'A copy of the task history has been emailed to @%s (Task Creator) [Subject: %s]' => 'Une copie de l\'historique des tâches a été envoyée par e-mail à @%s (Créateur de tâches) [Sujet: %s]',
'A copy of the task history has been emailed to the project email address [Subject: %s]' => 'Une copie de l\'historique des tâches a été envoyée par e-mail à l\'adresse e-mail du projet [Sujet: %s]',
'TASK CLOSED: A copy of the task history has been emailed to @%s (Task Assignee) [Subject: %s]' => 'TÂCHE FERMÉE: Une copie de l\'historique de la tâche a été envoyée par e-mail à @%s (chargé de la tâche) [Sujet: %s]',
'TASK CLOSED: A copy of the task history has been emailed to @%s (Task Creator) [Subject: %s]' => 'TÂCHE FERMÉE: Une copie de l\'historique des tâches a été envoyée par e-mail à @%s (Créateur de tâches) [Sujet: %s]',
'TASK CLOSED: A copy of the task history has been emailed to the project email address [Subject: %s]' => 'TÂCHE FERMÉE: Une copie de l\'historique des tâches a été envoyée par e-mail à l\'adresse e-mail du projet [Sujet: %s]',
//
// action_creation/params.php
//
Expand Down
6 changes: 3 additions & 3 deletions Locale/translations-starter-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
'Include the Task Title and ID in subject line?' => '',
'Include the Project Name in the subject line?' => '',
'Include the Project Identifier in the subject line?' => '',
'A copy of the task history has been emailed to @%s (Task Assignee) [Subject: %s]' => '',
'A copy of the task history has been emailed to @%s (Task Creator) [Subject: %s]' => '',
'A copy of the task history has been emailed to the project email address [Subject: %s]' => '',
'TASK CLOSED: A copy of the task history has been emailed to @%s (Task Assignee) [Subject: %s]' => '',
'TASK CLOSED: A copy of the task history has been emailed to @%s (Task Creator) [Subject: %s]' => '',
'TASK CLOSED: A copy of the task history has been emailed to the project email address [Subject: %s]' => '',
//
// action_creation/params.php
//
Expand Down

0 comments on commit 410b161

Please sign in to comment.