Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
(cherry picked from commit ac51e96)
  • Loading branch information
jonasraoni committed Jun 26, 2024
1 parent 41142a0 commit e613704
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/submission/DAO.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function getExportable($contextId, $pubIdType = null, $title = null, $aut
->where('s.context_id', '=', $contextId)
->when($pubIdType != null, fn (Builder $q) => $q->where('pspidt.setting_name', '=', "pub-id::{$pubIdType}")->whereNotNull('pspidt.setting_value'))
->when($title != null, fn (Builder $q) => $q->where('pst.setting_name', '=', 'title')->where('pst.setting_value', 'LIKE', "%{$title}%"))
->when($author != null, fn (Builder $q) => $q->where(fn (Builder $q) => $q->whereRaw("CONCAT(COALESCE(asgs.setting_value, ''), ' ', COALESCE(asfs.setting_value, ''))", 'LIKE', $author)))
->when($author != null, fn (Builder $q) => $q->whereRaw("CONCAT(COALESCE(asgs.setting_value, ''), ' ', COALESCE(asfs.setting_value, '')) LIKE ?", [$author]))
->when(
$pubIdSettingName,
fn (Builder $q) => $q->when(
Expand Down

0 comments on commit e613704

Please sign in to comment.