Skip to content

Commit 5d474bd

Browse files
committed
#11590 adapt getByDoi() to consider JAV versioning
1 parent b4f916a commit 5d474bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/submission/DAO.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public function getByPubId(string $pubIdType, string $pubId, ?int $contextId = n
192192
public function getByDoi(string $doi, int $contextId): ?Submission
193193
{
194194
$row = DB::table($this->table, 's')
195-
->leftJoin('publications AS p', 'p.publication_id', '=', 's.current_publication_id')
195+
->leftJoin('publications AS p', 'p.submission_id', '=', 's.submission_id')
196196
->leftJoin('dois AS d', 'd.doi_id', '=', 'p.doi_id')
197197
->where('d.doi', '=', $doi)
198198
->where('s.context_id', '=', $contextId)

0 commit comments

Comments
 (0)