Skip to content

【データベース】メール通知で[[title]]を入れても、実際のメールにタイトルが表示されない #1006

Closed
@akagane99

Description

@akagane99

概要

・件名通りです。

実行環境

OS: windows10
ブラウザ: 新Edge
Connect-CMS: 2021/10/18 git pull
php version: 7.3.0

再現手順

件名通り

スクリーンショット

メール設定
image

原因

現時点では、DBテーブルのカラムでtitleがないと、件名表示できない作りになっていたため。
https://github.com/opensource-workshop/connect-cms/blob/master/app/Models/Common/BucketsMail.php#L27

        // [[title]]
        $notice_body = str_ireplace('[[title]]', $post->title, $notice_body);

対応案

$post->title, の箇所のカラム名を設定できるようにプログラム修正する。

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugバグ・不具合連絡plugin(database)データベースプラグイン

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions