projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add config value for default queue id
[freeside.git]
/
FS
/
FS
/
TicketSystem
/
RT_Internal.pm
diff --git
a/FS/FS/TicketSystem/RT_Internal.pm
b/FS/FS/TicketSystem/RT_Internal.pm
index
74006f5
..
0039823
100644
(file)
--- a/
FS/FS/TicketSystem/RT_Internal.pm
+++ b/
FS/FS/TicketSystem/RT_Internal.pm
@@
-8,7
+8,7
@@
use FS::TicketSystem::RT_Libs;
@ISA = qw( FS::TicketSystem::RT_Libs );
@ISA = qw( FS::TicketSystem::RT_Libs );
-sub sql_customer_tickets {
+sub sql_
num_
customer_tickets {
"( select count(*) from tickets
join links on ( tickets.id = links.localbase )
where ( status = 'new' or status = 'open' or status = 'stalled' )
"( select count(*) from tickets
join links on ( tickets.id = links.localbase )
where ( status = 'new' or status = 'open' or status = 'stalled' )
@@
-18,7
+18,12
@@
sub sql_customer_tickets {
sub num_customer_tickets {
my( $self, $custnum, $priority ) = ( shift, shift, shift );
sub num_customer_tickets {
my( $self, $custnum, $priority ) = ( shift, shift, shift );
- $self->SUPER::new_customer_tickets( $custnum, $priority, dbh );
+ $self->SUPER::num_customer_tickets( $custnum, $priority, dbh );
+}
+
+sub customer_tickets {
+ my( $self, $custnum, $limit, $priority ) = ( shift, shift, shift, shift );
+ $self->SUPER::customer_tickets( $custnum, $limit, $priority, dbh );
}
sub href_customer_tickets {
}
sub href_customer_tickets {
@@
-27,5
+32,17
@@
sub href_customer_tickets {
popurl(2).'rt/'. $self->SUPER::href_customer_tickets(@_);
}
popurl(2).'rt/'. $self->SUPER::href_customer_tickets(@_);
}
+sub href_new_ticket {
+ my $self = shift;
+ # well, 2 is wrong here but will have to do for now
+ popurl(2).'rt/'. $self->SUPER::href_new_ticket(@_);
+}
+
+sub href_ticket {
+ my $self = shift;
+ # well, 2 is wrong here but will have to do for now
+ popurl(2).'rt/'. $self->SUPER::href_ticket(@_);
+}
+
1;
1;