Skip to content

Commit

Permalink
pkp/pkp-lib#9953 Fix garbling of review form responses (#4273)
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher authored May 9, 2024
1 parent c525405 commit 3dfe7b6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions classes/migration/upgrade/OJSv3_3_0UpgradeMigration.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.*']);
Expand Down

0 comments on commit 3dfe7b6

Please sign in to comment.