X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-select-cust_tag.html;h=711408e27b57568906eda78be74862ad2a62d2f3;hb=04f53daab621710db56b075e1aaf56e7c52f9ba9;hp=76b1b715dcaaaae418722fb40a6cef88d77659e8;hpb=671846c7bee35093d62a467236dddfe4706520b3;p=freeside.git diff --git a/httemplate/elements/tr-select-cust_tag.html b/httemplate/elements/tr-select-cust_tag.html index 76b1b715d..711408e27 100644 --- a/httemplate/elements/tr-select-cust_tag.html +++ b/httemplate/elements/tr-select-cust_tag.html @@ -1,11 +1,9 @@ % 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, - 'part_tag' => \@part_tag, %opt, ) %> @@ -38,6 +36,8 @@ if ( $cgi && $cgi->param('tagnum') ) { my $extra_sql = "WHERE disabled IS NULL OR disabled = '' "; $extra_sql .= ' OR tagnum IN ('. join(',', @curr_tagnum). ')' if @curr_tagnum; +#now kind of inefficient (we only want to know if there are any), but since +# its an edit control its not significant my @part_tag = qsearch({ 'table' => 'part_tag', 'hashref' => {},