-
Notifications
You must be signed in to change notification settings - Fork 466
Open
Labels
Bug:1:MinorA bug found in uncommon paths, with low consequences, limited users or has an easy workaroundA bug found in uncommon paths, with low consequences, limited users or has an easy workaround
Description
Update 2025-04-04
PRs:
stable-3_3_0
pkp-lib
: pkp/pkp-lib#7844 Author sequence in returned API JSON incorrect #11230ojs
: pkp/pkp-lib#7844 Author sequence in returned API JSON incorrect ojs#4811omp
: pkp/pkp-lib#7844 Author sequence in returned API JSON incorrect omp#1939ops
: pkp/pkp-lib#7844 Author sequence in returned API JSON incorrect ops#943
Describe the bug
The returned JSON when fetching a publication with an API call of the type:
https://journal.org/index.php/path/api/v1/submissions/xxxxx/publications/xxxxx
Includes the wrong sequence for authors. It sets the seq attribute of all of the authors to the sequence the publication has in the issue. Here is a relevant database record showing the sequence of the publication:
And here is the JSON for some of the authors. The author sequence is circled:
I've dumped variables and it seems that this is set this way already, here:
$publication->getData('authors') |
Sequence is correctly set in the authors table for the record, and the author string is also correct.
Seen in 3.3.0.8
Metadata
Metadata
Assignees
Labels
Bug:1:MinorA bug found in uncommon paths, with low consequences, limited users or has an easy workaroundA bug found in uncommon paths, with low consequences, limited users or has an easy workaround
Type
Projects
Status
Backlog