Skip to content

Commit cdc15d8

Browse files
authored
Merge pull request #3 from fiduswriter/develop
use old round as ID for creating new version
2 parents aea3d46 + 58e1749 commit cdc15d8

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

FidusWriterGatewayPlugin.inc.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ public function fetch($args, $request) {
177177
$resultArray = $this->authorSubmit();
178178
$response = array(
179179
"submission_id" => $resultArray["submissionId"],
180-
//"journal_id" => $resultArray["journalId"],
181180
"user_id" => $resultArray["userId"],
182181
"version" => $this->getApiVersion()
183182
);
@@ -290,7 +289,6 @@ function getJournals() {
290289
$journalDao = DAORegistry::getDAO('JournalDAO');
291290
/* @var $journalDao JournalDAO */
292291
$journalsObject = $journalDao->getAll();
293-
//$journalsCount = $journalsObject->getCount();
294292
/** Journal $journal */
295293
$journal = null;
296294
$journals = $journalsObject->toAssociativeArray();

FidusWriterPlugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ function callbackNewReviewRound($hookname, $args) {
350350
} else {
351351
$oldRound = $round - 1;
352352
$reviewRoundDao = DAORegistry::getDAO('ReviewRoundDAO');
353-
$oldReviewRound = $reviewRoundDao->getReviewRound($submissionId, $stageId, $round);
353+
$oldReviewRound = $reviewRoundDao->getReviewRound($submissionId, $stageId, $oldRound);
354354
// We need to copy a file from the previous revision round. If the author has
355355
// submitted something for the round, we use that version.
356356
// Otherwise, we use the Reviewer's version.

0 commit comments

Comments
 (0)