Skip to content
Snippets Groups Projects
Commit b7b422e2 authored by Quentin Ribac's avatar Quentin Ribac
Browse files

FIX #20786 TIME 0:25 fix attachments count in getItems()

parent e493aa6b
No related branches found
No related tags found
No related merge requests found
......@@ -853,8 +853,8 @@ class ResController extends ResourceControlController
$attachments = AttachmentModel::get([
'select' => ['count(1)'],
'where' => ['res_id_master = ?', 'status not in (?)', 'attachment_type not in (?)'],
'data' => [$args['resId'], ['DEL', 'OBS'], AttachmentTypeController::HIDDEN_ATTACHMENT_TYPES]
'where' => ['res_id_master = ?', 'status in (?)', 'attachment_type not in (?)'],
'data' => [$args['resId'], ['TRA', 'A_TRA', 'FRZ'], AttachmentTypeController::HIDDEN_ATTACHMENT_TYPES]
]);
$formattedData['attachments'] = $attachments[0]['count'];
......
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