Skip to content

Commit

Permalink
pkp#5960 Fix Publication not set error
Browse files Browse the repository at this point in the history
  • Loading branch information
defstat committed Jun 26, 2020
1 parent 82c3cef commit 97c4ed7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions locale/en_US/manager.po
Expand Up @@ -1564,6 +1564,9 @@ msgstr "The provided filesize \"{$expected}\" and the actual filesize \"{$actual
msgid "plugins.importexport.common.error.duplicateRevisionForSubmission"
msgstr "The revision \"{$revisionId}\" for submission file \"{$fileId}\" would create a duplicate record"

msgid "plugins.importexport.common.error.currentPublicationNullOrMissing"
msgstr "The submission's current publication is missing"

msgid "plugins.importexport.native.error.submissionFileImportFailed"
msgstr "The submission file could not be imported"

Expand Down
Expand Up @@ -129,10 +129,12 @@ function handleChildElement($n, $submission) {
case 'publication':
$publication = $this->parsePublication($n, $submission);

$publications = $submission->getData('publications');
$publications[] = $publication[0];
$submission->setData('publications', $publications);

if ($publication) {
$publications = $submission->getData('publications');
$publications[] = $publication[0];
$submission->setData('publications', $publications);
}

break;
default:
$deployment = $this->getDeployment();
Expand Down

0 comments on commit 97c4ed7

Please sign in to comment.