diff --git a/CHANGELOG.md b/CHANGELOG.md index a11e5d40..d4127e99 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Deleting points from the Points page now preserves `start_at` and `end_at` values for the routes. #261 - Visits map now being rendered correctly in the Visits page. #262 - Fixed issue with timezones for negative UTC offsets. #194, #122 +- Point page is no longer reloads losing provided timestamps when searching for points on Points page. #283 ### Changed diff --git a/app/controllers/points_controller.rb b/app/controllers/points_controller.rb index 8947f475..6acc6080 100644 --- a/app/controllers/points_controller.rb +++ b/app/controllers/points_controller.rb @@ -44,14 +44,14 @@ class PointsController < ApplicationController end def points - params[:import_id] ? points_from_import : points_from_user + params[:import_id].present? ? import_points : user_points end - def points_from_import + def import_points current_user.imports.find(params[:import_id]).points end - def points_from_user + def user_points current_user.tracked_points end diff --git a/app/views/points/index.html.erb b/app/views/points/index.html.erb index f2ec6809..892130a5 100644 --- a/app/views/points/index.html.erb +++ b/app/views/points/index.html.erb @@ -1,7 +1,7 @@ <% content_for :title, 'Points' %>