Skip to content

Author sequence in returned API JSON incorrect #7844

@jnugent

Description

@jnugent

Update 2025-04-04

PRs:

stable-3_3_0

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:

Screenshot at 2022-04-08 11-23-45

And here is the JSON for some of the authors. The author sequence is circled:

authors

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

Labels

Bug:1:MinorA bug found in uncommon paths, with low consequences, limited users or has an easy workaround

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions