Skip to content
Snippets Groups Projects
Verified Commit 0a9eb48a authored by Damien's avatar Damien
Browse files

FEAT #12346 TIME 0:05 Fix order version

parent 8781b4d3
No related branches found
No related tags found
No related merge requests found
......@@ -451,7 +451,7 @@ class ResController extends ResourceControlController
'select' => ['type', 'version'],
'where' => ['res_id = ?', 'type in (?)'],
'data' => [$args['resId'], ['PDF', 'SIGN', 'NOTE']],
'orderBy' => ['versions ASC']
'orderBy' => ['version ASC']
]);
if (empty($convertedDocuments)) {
return $response->withJson(['PDF' => $pdfVersions, 'SIGN' => $signedVersions, 'NOTE' => $noteVersions]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment