メールテンプレート保存後デフォルトシステムテンプレートも削除可能になってしまいます。
- Dominant language
- PHP
- Stars
- 788
- Forks
- 719
- Avg merge
- 4d 4h
- Merged PRs (30d)
- 39
Description
### 概要(Overview)
設定⇒店舗設定⇒メール設定
注文受付メールなどシステム用のテンプレートは本来削除できないようになっていますが、
1回保存すると「削除」ボタンが表示されてしまいます。
新規のみsetDeletable(true)にすべきで、更新時はDeletableを変更しないようにすべきかと思います。
### 再現手順(Procedure)
1.管理画面ログイン
2.設定⇒店舗設定⇒メール設定
注文受付メールを選択、削除ボタンが表示されていません
3.登録ボタンを押す
4.削除ボタンが表示されます。
5.削除ボタンを押すと、注文受付メールが削除されてしまいます。
### 環境(Environment)
EC-CUBE: 4.3.1
Contributor guide
Research direction
Start by tracing the admin email-settings save flow from 設定→店舗設定→メール設定 and follow how the system template's deletable state is assigned. Add a regression test covering save and subsequent deletion availability. Done means system templates remain non-deletable after saving, while newly created templates retain the intended behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100