Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix chapter author ordering in Collector, issue #10526 #1744

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

nils-stefan-weiher
Copy link
Contributor

@kaitlinnewson kaitlinnewson self-requested a review October 29, 2024 17:59
$q->when($this->chapterIds !== null, function (Builder $query) {
$query->join('submission_chapter_authors as sca', function (JoinClause $join) {
$join->whereIn('sca.chapter_id', $this->chapterIds)
->whereColumn('a.author_id', 'sca.author_id');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems it work like this too, but usually join would have ON part/statement, i.e. this would be ->on('a.author_id', '=', 'sca.author_id')

@bozana bozana merged commit 1be2cfa into pkp:stable-3_4_0 Nov 1, 2024
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants