From 3dfe7b68661436600752b459afb9ee81fa72eaaf Mon Sep 17 00:00:00 2001 From: Alec Smecher Date: Thu, 9 May 2024 15:31:56 -0700 Subject: [PATCH] pkp/pkp-lib#9953 Fix garbling of review form responses (#4273) --- classes/migration/upgrade/OJSv3_3_0UpgradeMigration.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/classes/migration/upgrade/OJSv3_3_0UpgradeMigration.inc.php b/classes/migration/upgrade/OJSv3_3_0UpgradeMigration.inc.php index 6d9a6328712..734c72b913d 100644 --- a/classes/migration/upgrade/OJSv3_3_0UpgradeMigration.inc.php +++ b/classes/migration/upgrade/OJSv3_3_0UpgradeMigration.inc.php @@ -105,6 +105,10 @@ private function _settingsAsJSON() { Capsule::table($tableName)->where('setting_type', 'object')->get()->each(function ($row) use ($tableName) { $this->_toJSON($row, $tableName, ['plugin_name', 'context_id', 'setting_name'], 'setting_value'); }); + } elseif ($tableName == 'review_form_element_settings') { + Capsule::table('review_form_element_settings')->where('setting_type', 'object')->get()->each(function ($row) { + $this->_toJSON($row, 'review_form_element_settings', ['setting_name', 'locale', 'review_form_element_id'], 'setting_value'); + }); } else { try { $settings = Capsule::table($tableName, 's')->where('setting_type', 'object')->get(['setting_name', 'setting_value', 's.*']);