freeside/rt/html/Ticket/Elements AddCustomers,1.2,1.3 ShowCustomers,1.1,1.2
Kristian Hoffmann
khoff at pouncequick.420.am
Thu Mar 10 17:34:34 PST 2005
- Previous message: freeside/rt/html/Elements Header,1.5,1.6 Menu,1.1.1.3,1.2 Tabs,1.4,1.5
- Next message: freeside/rt/lib/RT/URI/freeside Internal.pm,NONE,1.1 XMLRPC.pm,NONE,1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/rt/html/Ticket/Elements
In directory pouncequick:/tmp/cvs-serv2432/rt/html/Ticket/Elements
Modified Files:
AddCustomers ShowCustomers
Log Message:
Reorganized RT->Freeside integration to support Internal (single RT/Freeside database) and XMLRPC interfaces.
All the UI stuff is handled the same either way.
Integration type is changed by setting $RT::URI::freeside::IntegrationType to either 'Internal' or 'XMLRPC' in your RT_SiteConfig.pm.
Index: ShowCustomers
===================================================================
RCS file: /home/cvs/cvsroot/freeside/rt/html/Ticket/Elements/ShowCustomers,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- ShowCustomers 2 Dec 2004 09:59:47 -0000 1.1
+++ ShowCustomers 11 Mar 2005 01:34:31 -0000 1.2
@@ -21,7 +21,7 @@
% my $cust_main = '';
<tr>
<td class="value">
- <A HREF="<% $customerURI->Resolver->HREF %>"><% $customerURI->Resolver->AsStringLong |n %>
+ <A HREF="<% $customerURI->Resolver->HREF %>"><% $customerURI->Resolver->AsStringLong |n %></A>
</td>
</tr>
% }
Index: AddCustomers
===================================================================
RCS file: /home/cvs/cvsroot/freeside/rt/html/Ticket/Elements/AddCustomers,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- AddCustomers 2 Dec 2004 10:18:35 -0000 1.2
+++ AddCustomers 11 Mar 2005 01:34:31 -0000 1.3
@@ -19,9 +19,8 @@
% foreach my $customer (@Customers) {
<tr>
<td>
- <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 %>
+ <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 %>
</td>
</tr>
% }
@@ -31,9 +30,11 @@
<%INIT>
my ($msg);
+my $freeside_url = &RT::URI::freeside::FreesideURL();
+
my @Customers = ();
if ( $CustomerString ) {
- @Customers = smart_search( 'search' => $CustomerString );
+ @Customers = &RT::URI::freeside::smart_search( 'search' => $CustomerString );
warn scalar(@Customers);
}
@@ -41,9 +42,6 @@
if ($ServiceString) {
@Services = (); #service_search();
}
-
-eval { use FS::CGI qw( popurl small_custview ); };
-my $p = eval { popurl(3); };
</%INIT>
- Previous message: freeside/rt/html/Elements Header,1.5,1.6 Menu,1.1.1.3,1.2 Tabs,1.4,1.5
- Next message: freeside/rt/lib/RT/URI/freeside Internal.pm,NONE,1.1 XMLRPC.pm,NONE,1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list