mirror of
https://codeberg.org/SeedDMS/paperless
synced 2025-11-28 10:30:38 +00:00
allow sorting by field 'modified'
This commit is contained in:
parent
5db8a70515
commit
d5416f895a
|
|
@ -497,7 +497,7 @@ class SeedDMS_ExtPaperless_RestAPI_Controller { /* {{{ */
|
||||||
$order['dir'] = 'asc';
|
$order['dir'] = 'asc';
|
||||||
$orderfield = $params["ordering"];
|
$orderfield = $params["ordering"];
|
||||||
}
|
}
|
||||||
if(in_array($orderfield, ['created', 'title']))
|
if(in_array($orderfield, ['modified', 'created', 'title']))
|
||||||
$order['by'] = $orderfield;
|
$order['by'] = $orderfield;
|
||||||
elseif($orderfield == 'added')
|
elseif($orderfield == 'added')
|
||||||
$order['by'] = 'created';
|
$order['by'] = 'created';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user