From: ivan Date: Fri, 5 Oct 2007 19:45:04 +0000 (+0000) Subject: fix date selection on advanced invoice report, or future places where date selection... X-Git-Tag: freeside_1_7_3rc1~307 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=2ad6056b681be4cdec55563c8889eb5afd2032ca;p=freeside.git 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; + +