Skip to content

Commit

Permalink
Fix period queries
Browse files Browse the repository at this point in the history
  • Loading branch information
Kagemaru committed Mar 18, 2024
1 parent 6e90e50 commit 2323b5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/util/period.rb
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def negative?
end

def url_query_s
@url_query ||= "start_date=#{start_date}&end_date=#{end_date}"
@url_query ||= "start_date=#{start_date}&end_date=#{end_date}"
end

def limited?
Expand Down
2 changes: 1 addition & 1 deletion app/views/evaluator/_timecell.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
category_id: evaluation.category_id,
division_id: division_id.presence,
absence_id: params[:absence_id])
- link += '&' + ( p ? p.url_query_s : 'start_date=0' )
- link += '&' + ( p ? p.url_query_s : 'start_date=0' )
-# use html link instead of link_to for performance reasons
%a{ href: link.html_safe }= image_tag('lupe.gif', size: '19x11', alt: 'Details')
- else
Expand Down

0 comments on commit 2323b5a

Please sign in to comment.