Skip to content

Commit

Permalink
[BUGFIX] Fix wrong sorting of volumes in listview and toc (#931)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Kubina <[email protected]>
Co-authored-by: Sebastian Meyer <[email protected]>
  • Loading branch information
3 people authored Feb 28, 2024
1 parent 4ccee86 commit a0af049
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/Domain/Repository/DocumentRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ public function getTableOfContentsFromDb($uid, $pid, $settings)
$queryBuilder->expr()->eq('tx_dlf_structures_join.pid', intval($pid)),
$excludeOtherWhere
)
->addOrderBy('tx_dlf_documents.volume_sorting')
->add('orderBy', 'cast(volume_sorting as UNSIGNED) asc')
->addOrderBy('tx_dlf_documents.mets_orderlabel')
->execute();
}
Expand Down Expand Up @@ -533,7 +533,7 @@ public function findAllByUids($uids, $checkPartof = false)
$queryBuilder->expr()->in('tx_dlf_documents.pid', $this->settings['storagePid']),
$exprDocumentMatchesUid
)
->addOrderBy('tx_dlf_documents.volume_sorting', 'asc')
->add('orderBy', 'cast(volume_sorting as UNSIGNED) asc')
->addOrderBy('tx_dlf_documents.mets_orderlabel', 'asc')
->execute();

Expand Down

0 comments on commit a0af049

Please sign in to comment.