X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-select-cust_tag.html;h=b133dcc15b80f68d709097db72db191830daf920;hb=1878ee1e6238755464472ea20e944fdab8fb5f0b;hp=d88f3a89436c3bd604a03c306ba1934848957e87;hpb=556b8e9650155e74416496238cfc0e4abe64c53a;p=freeside.git diff --git a/httemplate/elements/tr-select-cust_tag.html b/httemplate/elements/tr-select-cust_tag.html index d88f3a894..b133dcc15 100644 --- a/httemplate/elements/tr-select-cust_tag.html +++ b/httemplate/elements/tr-select-cust_tag.html @@ -1,7 +1,7 @@ -% if ( $curuser->access_right('Edit customer tags') && @part_tag ) { +% if ( ($curuser->access_right('Edit customer tags') && @part_tag) || $is_report ) { - <% $opt{'label'} || 'Tags' %> + <% $opt{'label'} || 'Tags' %> <% include( '/elements/select-cust_tag.html', 'curr_value' => \@curr_tagnum, @@ -25,9 +25,10 @@ my $curuser = $FS::CurrentUser::CurrentUser; my %opt = @_; my $cgi = $opt{'cgi'}; +my $is_report = $opt{'is_report'}; my @curr_tagnum = (); -if ( $cgi->param('error') ) { +if ( $cgi && $cgi->param('tagnum') ) { @curr_tagnum = $cgi->param('tagnum'); } elsif ( $opt{'custnum'} ) { @curr_tagnum = map $_->tagnum,