[freeside-commits] freeside/rt/html/Ticket/Elements EditCustomers, 1.4, 1.5 ShowCustomers, 1.2, 1.3
Ivan,,,
ivan at wavetail.420.am
Sun Mar 23 20:08:01 PDT 2008
Update of /home/cvs/cvsroot/freeside/rt/html/Ticket/Elements
In directory wavetail.420.am:/tmp/cvs-serv11878/html/Ticket/Elements
Modified Files:
EditCustomers ShowCustomers
Log Message:
woo! final part of #1160! yup, auto-associating tickets with customers now. whew!
Index: EditCustomers
===================================================================
RCS file: /home/cvs/cvsroot/freeside/rt/html/Ticket/Elements/EditCustomers,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- EditCustomers 21 Aug 2006 12:38:15 -0000 1.4
+++ EditCustomers 24 Mar 2008 03:07:59 -0000 1.5
@@ -1,4 +1,5 @@
%# Copyright (c) 2004 Ivan Kohler <ivan-rt at 420.am>
+%# Copyright (c) 2008 Freeside Internet Services, Inc.
%#
%# This work is made available to you under the terms of Version 2 of
%# the GNU General Public License. A copy of that license should have
@@ -20,12 +21,7 @@
</tr>
<tr>
<td class="value">
-% #while (my $link = $Ticket->MemberOf->Next) {
-% foreach my $link (
-% grep { $_->TargetURI->Resolver->{'fstable'} eq 'cust_main' }
-% grep { $_->TargetURI->Scheme eq 'freeside' }
-% @{ $Ticket->_Links('Base')->ItemsArrayRef }
-% ) {
+% foreach my $link ( @{ $Ticket->Customers->ItemsArrayRef } ) {
<INPUT TYPE=CHECKBOX NAME="DeleteLink--<%$link->Type%>-<%$link->Target%>">
%# <& ShowLink, URI => $link->TargetURI &><br>
Index: ShowCustomers
===================================================================
RCS file: /home/cvs/cvsroot/freeside/rt/html/Ticket/Elements/ShowCustomers,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- ShowCustomers 11 Mar 2005 01:34:31 -0000 1.2
+++ ShowCustomers 24 Mar 2008 03:07:59 -0000 1.3
@@ -11,17 +11,15 @@
%# General Public License for more details.
<table>
% my $cust = 0;
-% foreach my $customerURI (
-% grep { $_->Resolver->{'fstable'} eq 'cust_main' }
-% grep { $_->Scheme eq 'freeside' }
-% map { $_->TargetURI }
-% @{ $Ticket->_Links('Base')->ItemsArrayRef }
-% ) {
+% foreach my $custResolver ( map { $_->TargetURI->Resolver }
+% @{ $Ticket->Customers->ItemsArrayRef }
+% )
+% {
% $cust++;
% my $cust_main = '';
<tr>
<td class="value">
- <A HREF="<% $customerURI->Resolver->HREF %>"><% $customerURI->Resolver->AsStringLong |n %></A>
+ <A HREF="<% $custResolver->HREF %>"><% $custResolver->AsStringLong |n %></A>
</td>
</tr>
% }
More information about the freeside-commits
mailing list