Skip to content

Commit

Permalink
revised getReviewShelf to avoid reorder on load
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketMan committed Jan 9, 2025
1 parent 414f4a8 commit 12c8c5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/impl/ReviewImpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ public function setExportId($tag, $user, $exportId) {

public function getReviewShelf() {
$n = count(self::REVIEW_SHELF);
$query = "SELECT a.*, u.realname FROM albumvol a LEFT JOIN users u ON a.bin = u.name WHERE location IN ( ?" . str_repeat(', ?', $n - 1) . " ) ORDER BY artist, album";
$query = "SELECT a.*, u.realname FROM albumvol a LEFT JOIN users u ON a.bin = u.name WHERE location IN ( ?" . str_repeat(', ?', $n - 1) . " ) ORDER BY album, artist";
$stmt = $this->prepare($query);
foreach(self::REVIEW_SHELF as $status)
$stmt->bindValue($n--, $status);
Expand Down

0 comments on commit 12c8c5a

Please sign in to comment.