From 9eb843fefb50d8ca26a8941f2ebdf4d41b6dd0db Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 5 Oct 2007 19:45:03 +0000 Subject: [PATCH] fix date selection on advanced invoice report, or future places where date selection component is included multiple times --- httemplate/elements/tr-input-beginning_ending.html | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) 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; + + -- 2.11.0