Revert "Properly fix prev/next in set."
This reverts commit 94427a4c5c03b1368356279781bddf6c82527831.
This commit is contained in:
parent
9b2cc5caae
commit
9dfb2649e5
@ -515,12 +515,12 @@ class Asset
|
||||
INNER JOIN assets AS a ON a.id_asset = t.id_asset
|
||||
WHERE t.id_tag = {int:id_tag} AND
|
||||
a.date_captured <= {datetime:date_captured} AND
|
||||
a.id_asset <= {int:id_asset}
|
||||
a.id_asset != {int:id_asset}
|
||||
ORDER BY a.date_captured DESC'
|
||||
: '
|
||||
FROM assets AS a
|
||||
WHERE date_captured >= {datetime:date_captured} AND
|
||||
a.id_asset >= {int:id_asset}
|
||||
a.id_asset != {int:id_asset}
|
||||
ORDER BY date_captured ASC')
|
||||
. '
|
||||
LIMIT 1',
|
||||
|
Loading…
Reference in New Issue
Block a user