From 0159ac8d7de714b3130482db24bb9bb10b8ab676 Mon Sep 17 00:00:00 2001 From: simon <31130607+forgive38@users.noreply.github.com> Date: Thu, 3 Oct 2024 10:32:22 +0200 Subject: [PATCH] pkp/pkp-lib#10498 load all template languages when obtaining a default template --- classes/emailTemplate/DAO.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/emailTemplate/DAO.php b/classes/emailTemplate/DAO.php index ff388308a58..07fc00b2f62 100644 --- a/classes/emailTemplate/DAO.php +++ b/classes/emailTemplate/DAO.php @@ -165,7 +165,7 @@ public function fromRow(object $row): EmailTemplate ? DB::table('site')->first()->supported_locales : DB::table($contextDao->settingsTableName) ->where($contextDao->primaryKeyColumn, $row->context_id) - ->where('setting_name', 'supportedLocales') + ->where('setting_name', 'supportedFormLocales') ->value('setting_value'); $rows = DB::table($this->defaultTable)