Skip to content

Commit

Permalink
pkp/pkp-lib#4668 Fix server bounce of tag-it fields
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Aug 28, 2020
1 parent 5c25a74 commit 9b4cfd2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions QuickSubmitForm.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,21 @@ function readInputData() {
'locale'
)
);

// Process entered tagit fields values
// @see PKPSubmissionHandler::saveStep
$tagitKeywords = $this->getData('keywords');
if (is_array($tagitKeywords)) {
$tagitFieldNames = $this->_metadataFormImplem->getTagitFieldNames();
$locales = array_keys($this->supportedLocales);
$formTagitData = array();
foreach ($tagitFieldNames as $tagitFieldName) {
foreach ($locales as $locale) {
$formTagitData[$locale] = array_key_exists($locale . "-$tagitFieldName", $tagitKeywords) ? $tagitKeywords[$locale . "-$tagitFieldName"] : array();
}
$this->setData($tagitFieldName, $formTagitData);
}
}
}

/**
Expand Down

0 comments on commit 9b4cfd2

Please sign in to comment.