X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-select-cust_tag.html;h=b133dcc15b80f68d709097db72db191830daf920;hb=88e9a56677d343392416c262f976f069157b06cb;hp=b2b6d967e39c9d9d64f28293324679bafece6984;hpb=fb4ab1073f0d15d660c6cdc4e07afebf68ef3924;p=freeside.git diff --git a/httemplate/elements/tr-select-cust_tag.html b/httemplate/elements/tr-select-cust_tag.html index b2b6d967e..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) || $is_report ) { - <% $opt{'label'} || 'Tags' %> + <% $opt{'label'} || 'Tags' %> <% include( '/elements/select-cust_tag.html', 'curr_value' => \@curr_tagnum, @@ -28,7 +28,7 @@ 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,