diff options
Diffstat (limited to 'rt/html/Ticket/Elements/AddCustomers')
-rw-r--r-- | rt/html/Ticket/Elements/AddCustomers | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/rt/html/Ticket/Elements/AddCustomers b/rt/html/Ticket/Elements/AddCustomers index 01c7367c4..66480e2f1 100644 --- a/rt/html/Ticket/Elements/AddCustomers +++ b/rt/html/Ticket/Elements/AddCustomers @@ -19,8 +19,9 @@ % foreach my $customer (@Customers) { <tr> <td> - <input type="checkbox" name="Ticket-AddCustomer-<% $customer->{'custnum'} %>" VALUE="1" <% scalar(@Customers) == 1 ? 'CHECKED' : '' %>> - <A HREF="<%$freeside_url%>/view/cust_main.cgi?<% $customer->{'custnum'} %>"><% &RT::URI::freeside::small_custview($customer->{'custnum'}, &RT::URI::freeside::FreesideGetConfig('countrydefault'), 1) |n %> + <input type="checkbox" name="Ticket-AddCustomer-<% $customer->custnum %>" VALUE="1" <% scalar(@Customers) == 1 ? 'CHECKED' : '' %>> +%# <% $customer->name %> + <A HREF="<% $p %>view/cust_main.cgi?<% $customer->custnum %>"><% small_custview( $customer, scalar(FS::Conf->new->config('countrydefault')), 1 ) |n %> </td> </tr> % } @@ -30,11 +31,10 @@ <%INIT> my ($msg); -my $freeside_url = &RT::URI::freeside::FreesideURL(); - my @Customers = (); if ( $CustomerString ) { - @Customers = &RT::URI::freeside::smart_search( 'search' => $CustomerString ); + @Customers = smart_search( 'search' => $CustomerString ); + warn scalar(@Customers); } my @Services = (); @@ -42,6 +42,9 @@ if ($ServiceString) { @Services = (); #service_search(); } +eval { use FS::CGI qw( popurl small_custview ); }; +my $p = eval { popurl(3); }; + </%INIT> <%ARGS> |