diff --git a/app/models/util/period.rb b/app/models/util/period.rb index c073815c..7a9ab50e 100644 --- a/app/models/util/period.rb +++ b/app/models/util/period.rb @@ -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? diff --git a/app/views/evaluator/_timecell.html.haml b/app/views/evaluator/_timecell.html.haml index f0236f48..33c9f1b9 100644 --- a/app/views/evaluator/_timecell.html.haml +++ b/app/views/evaluator/_timecell.html.haml @@ -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