From: ivan Date: Fri, 5 Oct 2007 19:45:03 +0000 (+0000) Subject: fix date selection on advanced invoice report, or future places where date selection... X-Git-Tag: TRIXBOX_2_6~291 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=9eb843fefb50d8ca26a8941f2ebdf4d41b6dd0db fix date selection on advanced invoice report, or future places where date selection component is included multiple times --- diff --git a/httemplate/elements/tr-input-beginning_ending.html b/httemplate/elements/tr-input-beginning_ending.html index 9c067dbea..8a1dd62a9 100644 --- a/httemplate/elements/tr-input-beginning_ending.html +++ b/httemplate/elements/tr-input-beginning_ending.html @@ -1,7 +1,9 @@ - - - - +% unless ( $m->count == $previous_request_count ) { + + + + +% } From date: @@ -43,6 +45,11 @@ +<%once> + +my $previous_request_count = ''; + + <%init> my %opt = @_; @@ -61,3 +68,8 @@ if ( $opt{'input_time'} ) { } +<%cleanup> + +$previous_request_count = $m->count; + +