Skip to content
Snippets Groups Projects
Commit 965a7ff3 authored by Florian Azizian's avatar Florian Azizian
Browse files

FIX #11641 TIME 0:10 improve export folder

parent f7a9fad8
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,8 @@ foreach ($customs as $custom) { ...@@ -18,7 +18,8 @@ foreach ($customs as $custom) {
$folders = \SrcCore\models\DatabaseModel::select([ $folders = \SrcCore\models\DatabaseModel::select([
'select' => ['f.folders_system_id', 'f.folder_name', 'f.status', 'r.res_id', 'mlb.alt_identifier', 'r.subject'], 'select' => ['f.folders_system_id', 'f.folder_name', 'f.status', 'r.res_id', 'mlb.alt_identifier', 'r.subject'],
'table' => ['folder_tmp f, res_letterbox r, mlb_coll_ext mlb'], 'table' => ['folder_tmp f, res_letterbox r, mlb_coll_ext mlb'],
'where' => ['f.folders_system_id = r.folders_system_id', 'r.res_id = mlb.res_id', 'f.destination is null', 'f.status <> \'DEL\'', 'r.status <> \'DEL\''] 'where' => ['f.folders_system_id = r.folders_system_id', 'r.res_id = mlb.res_id', '(f.destination is null or f.destination = \'\')', 'f.status <> \'DEL\'', 'r.status <> \'DEL\''],
'order_by' => ['f.folder_name']
]); ]);
if (!empty($folders)) { if (!empty($folders)) {
......
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