From d63e486499b482585be4769e65872ca52f806922 Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Thu, 13 Sep 2018 11:51:40 +0200 Subject: [PATCH] Fixed camera_id photo search parameter --- frontend/src/app/pages/photos.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/frontend/src/app/pages/photos.vue b/frontend/src/app/pages/photos.vue index dcd9d1587..88c072798 100644 --- a/frontend/src/app/pages/photos.vue +++ b/frontend/src/app/pages/photos.vue @@ -191,7 +191,7 @@ const resultPage = query.hasOwnProperty('page') ? parseInt(query['page']) : 1; const resultOffset = resultCount * (resultPage - 1); const order = query.hasOwnProperty('order') && query['order'] != "" ? query['order'] : 'taken_at DESC'; - const dir = query.hasOwnProperty('dir') ? query['dir'] : ''; + const camera_id = query.hasOwnProperty('camera_id') ? parseInt(query['camera_id']) : ''; const q = query.hasOwnProperty('q') ? query['q'] : ''; const view = query.hasOwnProperty('view') ? query['view'] : 'tile'; const cameras = [{value: '', text: 'All Cameras'}]; @@ -209,7 +209,7 @@ 'query': { category: '', country: '', - camera_id: '', + camera_id: camera_id, order: order, q: q, }, @@ -234,8 +234,6 @@ ], }, 'page': resultPage, - 'order': order, - 'dir': dir, 'view': view, 'resultCount': resultCount, 'resultOffset': resultOffset,