Skip to content
Snippets Groups Projects
Verified Commit 88b997d1 authored by Florian Azizian's avatar Florian Azizian
Browse files

FIX #14118 TIME 0:30 Version attachments always hidden

parent d373a467
No related branches found
No related tags found
No related merge requests found
......@@ -118,8 +118,8 @@ class AttachmentController
if (!empty($attachment['originId'])) {
$oldVersions = AttachmentModel::get([
'select' => ['res_id as "resId"', 'relation'],
'where' => ['(origin_id = ? OR res_id = ?)', 'res_id != ?', 'status not in (?)', 'attachment_type not in (?)'],
'data' => [$attachment['originId'], $attachment['originId'], $args['id'], ['DEL'], $excludeAttachmentTypes],
'where' => ['(origin_id = ? OR res_id = ?)', 'res_id != ?', 'status not in (?)'],
'data' => [$attachment['originId'], $attachment['originId'], $args['id'], ['DEL']],
'orderBy' => ['relation DESC']
]);
}
......
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