[freeside-commits] freeside/rt/lib/RT/URI freeside.pm,1.6,1.7
Ivan,,,
ivan at wavetail.420.am
Thu Feb 11 17:35:35 PST 2010
Update of /home/cvs/cvsroot/freeside/rt/lib/RT/URI
In directory wavetail.420.am:/tmp/cvs-serv6252/rt/lib/RT/URI
Modified Files:
freeside.pm
Log Message:
add ticket creation to self-service API, RT#7007
Index: freeside.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/rt/lib/RT/URI/freeside.pm,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- freeside.pm 18 Apr 2008 21:19:29 -0000 1.6
+++ freeside.pm 12 Feb 2010 01:35:33 -0000 1.7
@@ -132,7 +132,7 @@
my $self = shift;
- $RT::Logger->debug("Called _FreesideURILabel()");
+ #$RT::Logger->debug("Called _FreesideURILabel()");
return unless (exists($self->{'fstable'}) and
exists($self->{'fspkey'}));
@@ -140,17 +140,21 @@
my $label;
my ($table, $pkey) = ($self->{'fstable'}, $self->{'fspkey'});
- if ($table ne 'cust_main') {
- warn "FS::${table} not currently supported";
- return;
- }
+ #if ($table ne 'cust_main') {
+ # warn "FS::${table} not currently supported";
+ # return;
+ #}
my $rec = $self->_FreesideGetRecord();
- if (ref($rec) eq 'HASH' and $table eq 'cust_main') {
+ if (ref($rec) eq 'HASH' && $table eq 'cust_main') {
my $name = $rec->{'last'} . ', ' . $rec->{'first'};
$name = $rec->{'company'} . " ($name)" if $rec->{'company'};
$label = "$pkey: $name";
+ } elsif ( $table eq 'cust_svc' && ref($rec) && $rec->{'_object'} ) {
+ #Internal only
+ my($l,$v) = $rec->{'_object'}->label;
+ $label = "$l: $v";
} else {
$label = "$pkey: $table";
}
More information about the freeside-commits
mailing list