Skip to content

Commit d1448e6

Browse files
committed
FOUR-22068: Update the creation Default Email
1 parent adc5821 commit d1448e6

4 files changed

Lines changed: 470 additions & 429 deletions

File tree

‎ProcessMaker/Repositories/TokenRepository.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,8 @@ private function prepareEmailData(TokenInterface $token, User $user)
281281
'link_review_task' => config('app.url') . '/' . 'tasks/' . $token->id . '/edit',
282282
'imgHeader' => config('app.url') . '/img/processmaker_login.png',
283283
];
284-
// Get the screen
285-
$screen = Screen::where('title', 'DEFAULT_EMAIL_TASK_NOTIFICATION')->first();
284+
// Get the screen by key
285+
$screen = Screen::getScreenByKey('default-email-task-notification');
286286
// Prepare the email configuration
287287
$configEmail = [
288288
'emailServer' => 0, // Use the default email server

0 commit comments

Comments
 (0)