projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
UI spring cleaning: customer edit
[freeside.git]
/
httemplate
/
elements
/
tr-select-cust_tag.html
diff --git
a/httemplate/elements/tr-select-cust_tag.html
b/httemplate/elements/tr-select-cust_tag.html
index
d88f3a8
..
b133dcc
100644
(file)
--- 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
) {
<TR>
<TR>
- <T
D
ALIGN="right"><% $opt{'label'} || 'Tags' %></TD>
+ <T
H
ALIGN="right"><% $opt{'label'} || 'Tags' %></TD>
<TD>
<% include( '/elements/select-cust_tag.html',
'curr_value' => \@curr_tagnum,
<TD>
<% 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 %opt = @_;
my $cgi = $opt{'cgi'};
+my $is_report = $opt{'is_report'};
my @curr_tagnum = ();
my @curr_tagnum = ();
-if ( $cgi
->param('error
') ) {
+if ( $cgi
&& $cgi->param('tagnum
') ) {
@curr_tagnum = $cgi->param('tagnum');
} elsif ( $opt{'custnum'} ) {
@curr_tagnum = map $_->tagnum,
@curr_tagnum = $cgi->param('tagnum');
} elsif ( $opt{'custnum'} ) {
@curr_tagnum = map $_->tagnum,