Skip to content

Commit 6060d19

Browse files
authored
Merge pull request #11384 from Hafsa-Naeem/i9202-stable_3_5_0-fix
#9202 Include 3.4 missing email templates in 3.5 upgrade
2 parents efb3999 + c1a0050 commit 6060d19

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

classes/migration/upgrade/v3_5_0/InstallEmailTemplates.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,23 @@ protected function getEmailTemplateKeys(): array
2828
{
2929
return [
3030
'CHANGE_EMAIL',
31+
'SUBMISSION_SAVED_FOR_LATER',
32+
'SUBMISSION_NEEDS_EDITOR',
33+
'REVIEW_COMPLETE',
34+
'REVIEW_EDIT',
3135
];
3236
}
3337

3438
public function up(): void
3539
{
40+
// remove the carried-over notifications template rows
41+
DB::table('email_templates_default_data')
42+
->where('email_key', 'NOTIFICATION')
43+
->delete();
44+
DB::table('email_templates')
45+
->where('email_key', 'NOTIFICATION')
46+
->delete();
47+
3648
$xmlDao = new XMLDAO();
3749

3850
$data = $xmlDao->parseStruct('registry/emailTemplates.xml', ['email']);

0 commit comments

Comments
 (0)