summaryrefslogtreecommitdiff
path: root/app/finders/concerns/time_frame_filter.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/finders/concerns/time_frame_filter.rb')
-rw-r--r--app/finders/concerns/time_frame_filter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/concerns/time_frame_filter.rb b/app/finders/concerns/time_frame_filter.rb
index d1ebed730f6..7412bea340e 100644
--- a/app/finders/concerns/time_frame_filter.rb
+++ b/app/finders/concerns/time_frame_filter.rb
@@ -2,7 +2,7 @@
module TimeFrameFilter
def by_timeframe(items)
- return items unless params[:start_date] && params[:start_date]
+ return items unless params[:start_date] && params[:end_date]
start_date = params[:start_date].to_date
end_date = params[:end_date].to_date