Skip to content

Commit 256f09e

Browse files
committed
Add missing parentheses to activity history statistics
Regresses 9a9efd5.
1 parent 74dfe08 commit 256f09e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/views/statistics/activity_history.html.slim

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@
1313
form
1414
.mb-3
1515
label for='from-date' = t('.from')
16-
input.form-control#from-date type='date' name='from' value=params[:from] || DateTime.new(2016).to_date
16+
- from = params[:from] || DateTime.new(2014).to_date
17+
input.form-control#from-date type='date' name='from' value=from
1718
.mb-3
1819
label for='to-date' = t('.to')
19-
input.form-control#to-date type='date' name='to' value=params[:to] || DateTime.now.to_date
20+
- to = params[:to] || DateTime.now.to_date
21+
input.form-control#to-date type='date' name='to' value=to
2022
.mb-3
2123
label for='interval' = t('.interval')
2224
select.form-control#interval name='interval'

0 commit comments

Comments
 (0)