X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main.cgi;h=fac126f923cfc5205e76344289c57279ae599ec8;hb=c72a0848224b544426eddec7c63186a5de04280e;hp=af611bbbd76e6e697fcdfe6cda0c90704c3d80d9;hpb=434137989f7343ada30ceff4056c5f75ef8d9d27;p=freeside.git diff --git a/httemplate/view/cust_main.cgi b/httemplate/view/cust_main.cgi index af611bbbd..fac126f92 100755 --- a/httemplate/view/cust_main.cgi +++ b/httemplate/view/cust_main.cgi @@ -54,9 +54,6 @@ function areyousure_popup(message, action, actionlabel) { % if ( $view eq 'basics' ) { % my $br = 0; -% if ( $curuser->access_right('Order customer package') && $conf->exists('cust_main-enable_order_package') ) { - | <& /elements/order_pkg_link.html, 'cust_main'=>$cust_main &> -% } % if ( $conf->config('cust_main-external_links') ) { <% $br++ ? ' | ' : '' %> @@ -228,16 +225,19 @@ my $cust_main = qsearchs( { }); die "Customer not found!" unless $cust_main; -my $title = mt("Customer").' #'. $cust_main->display_custnum. ': '. - encode_entities($cust_main->name); +my $title = mt("Customer").' #'. $cust_main->display_custnum. ': '; +my $title_noescape = $title. encode_entities($cust_main->name); +$title .= $cust_main->name; if ( $curuser->num_agents ) { - $title = encode_entities($cust_main->agent->agent). " $title"; + $title_noescape = + encode_entities($cust_main->agent->agent). " $title_noescape"; + $title = $cust_main->agent->agent. " $title"; } my $status = $cust_main->status_label; $status .= ' (Cancelled)' if $cust_main->is_status_delay_cancel; -my $title_noescape = $title. ' ('. $status. ')'; +$title_noescape .= ' ('. $status. ')'; $title .= " ($status)"; #false laziness w/pref/pref.html and Conf.pm (cust_main-default_view)