Skip to content

Commit 51be8c5

Browse files
committed
Update filter to show to date if the from
1 parent 04a83fb commit 51be8c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/media_vault/archive_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def index
3434

3535
# Set these variables if we want to
3636
@from_date = from_date unless from_date == "0000-01-01"
37-
@to_date = to_date unless to_date == Date.today.to_s
37+
@to_date = to_date unless to_date == Date.today.to_s && from_date == "0000-01-01"
3838

3939
# Yes, this is inefficient...
4040
@fact_check_organizations = ArchiveItem.all.collect { |item| item.media_review&.media_review_author }.uniq.compact

0 commit comments

Comments
 (0)