Skip to content

Commit

Permalink
Merge branch 'dev-5' into dev-5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuring committed Mar 26, 2024
2 parents a4b95a4 + f803211 commit 01ceed3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* @var \BcMail\View\MailFrontEmailView $this
* @var array $other その他データ
* @var array $mailConfig メール設定データ
* @var \BaserCore\Model\Entity\Site $site サイト
*/
?>

Expand All @@ -29,7 +30,7 @@
<?php echo __d('baser_core', 'この度は、ご連絡ありがとうございます。') ?> 
<?php echo __d('baser_core', '送信内容は下記のようになっております。') ?> 
<?php elseif ($other['mode'] === 'admin'): ?>
 <?php echo $mailConfig->site_name ?> <?php echo __d('baser_core', 'へ連絡を受け付けました。') ?> 
 <?php echo $site->display_name ?> <?php echo __d('baser_core', 'へ連絡を受け付けました。') ?> 
 <?php echo __d('baser_core', '受信内容は下記のとおりです。') ?> 
<?php endif; ?>

Expand Down
4 changes: 4 additions & 0 deletions plugins/bc-mail/src/Service/Front/MailFrontService.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
namespace BcMail\Service\Front;

use BaserCore\Error\BcException;
use BaserCore\Service\SitesServiceInterface;
use BaserCore\Utility\BcContainerTrait;
use BaserCore\Utility\BcSiteConfig;
use BaserCore\Utility\BcUtil;
Expand Down Expand Up @@ -354,7 +355,10 @@ public function createMailData(
/** @var MailMessagesService $mailMessagesService */
$mailMessagesService = $this->getService(MailMessagesServiceInterface::class);
$mailMessage = $mailMessagesService->MailMessages->convertToDb($mailFields, $mailMessage);
$siteService = $this->getService(SitesServiceInterface::class);
$site = $siteService->get($mailContent->content->site_id);
return $mailMessagesService->MailMessages->convertDatasToMail([
'site' => $site,
'message' => $mailMessage,
'content' => $mailContent->content,
'mailFields' => $mailFields,
Expand Down

0 comments on commit 01ceed3

Please sign in to comment.