mirror of
https://codeberg.org/SeedDMS/paperless
synced 2025-02-06 06:55:28 +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';
|
||||
$orderfield = $params["ordering"];
|
||||
}
|
||||
if(in_array($orderfield, ['created', 'title']))
|
||||
if(in_array($orderfield, ['modified', 'created', 'title']))
|
||||
$order['by'] = $orderfield;
|
||||
elseif($orderfield == 'added')
|
||||
$order['by'] = 'created';
|
||||
|
|
Loading…
Reference in New Issue
Block a user