Skip to content

Commit

Permalink
Merge pull request #71 from s-nakajima/master
Browse files Browse the repository at this point in the history
fix: 差し戻しでメールが飛ばないバグ修正
  • Loading branch information
s-nakajima committed May 16, 2020
2 parents 6d89e87 + b2cdf95 commit 2fe898b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Model/Behavior/CalendarMailBehavior.php
Expand Up @@ -105,6 +105,11 @@ public function sendWorkflowAndNoticeMail(Model $model, $eventId, $isMyPrivateRo
MailSettingFixedPhrase::DEFAULT_TYPE, $data['CalendarEvent']['key'], 'calendars');

if ($isMailSend) {
//ワークフローコメントがある場合、saveQueue()で使用しているため、セットする
if (!empty($model->data['WorkflowComment']['comment'])) {
$model->CalendarEvent->data['WorkflowComment']['comment'] =
$model->data['WorkflowComment']['comment'];
}
// メールキュー作成
$model->CalendarEvent->saveQueue();
// キューからメール送信
Expand Down

0 comments on commit 2fe898b

Please sign in to comment.