Skip to content

Commit

Permalink
Fix pressSeriesId error
Browse files Browse the repository at this point in the history
  • Loading branch information
Godoy0722 committed Oct 8, 2024
1 parent 5dd004d commit b1e81c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/importexport/csv/CSVImportExportPlugin.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ function executeCLI($scriptName, &$args) {
continue;
}

$pressSeriesId = null;
if ($data->seriesPath) {
$pressSeriesId = $this->_getCachedSerieId($data->seriesPath, $press->getId());
if (!$pressSeriesId) {
Expand Down Expand Up @@ -398,7 +399,7 @@ function executeCLI($scriptName, &$args) {
continue;
}

$publication = $this->_processPublication($submission, $data, $press);
$publication = $this->_processPublication($submission, $data, $press, $pressSeriesId);
$publicationId = $publication->getId();
$this->_processAuthors($data, $press->getContactEmail(), $submissionId, $publication, $userGroupId);

Expand Down

0 comments on commit b1e81c8

Please sign in to comment.