projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rt 4.2.14 (#13852)
[freeside.git]
/
rt
/
lib
/
RT
/
Transactions.pm
diff --git
a/rt/lib/RT/Transactions.pm
b/rt/lib/RT/Transactions.pm
index
9c359c0
..
2a76738
100755
(executable)
--- a/
rt/lib/RT/Transactions.pm
+++ b/
rt/lib/RT/Transactions.pm
@@
-2,7
+2,7
@@
#
# COPYRIGHT:
#
#
# COPYRIGHT:
#
-# This software is Copyright (c) 1996-201
5
Best Practical Solutions, LLC
+# This software is Copyright (c) 1996-201
7
Best Practical Solutions, LLC
# <sales@bestpractical.com>
#
# (Except where explicitly superseded by other copyright notices)
# <sales@bestpractical.com>
#
# (Except where explicitly superseded by other copyright notices)
@@
-69,11
+69,10
@@
package RT::Transactions;
use strict;
use warnings;
use strict;
use warnings;
+use base 'RT::SearchBuilder';
use RT::Transaction;
use RT::Transaction;
-use base 'RT::SearchBuilder';
-
sub Table { 'Transactions'}
# {{{ sub _Init
sub Table { 'Transactions'}
# {{{ sub _Init
@@
-85,9
+84,9
@@
sub _Init {
# By default, order by the date of the transaction, rather than ID.
$self->OrderByCols( { FIELD => 'Created',
# By default, order by the date of the transaction, rather than ID.
$self->OrderByCols( { FIELD => 'Created',
- ORDER => 'ASC' },
- { FIELD => 'id',
- ORDER => 'ASC' } );
+
ORDER => 'ASC' },
+
{ FIELD => 'id',
+
ORDER => 'ASC' } );
return ( $self->SUPER::_Init(@_));
}
return ( $self->SUPER::_Init(@_));
}
@@
-109,11
+108,10
@@
sub LimitToTicket {
my $tid = shift;
unless ( $self->{'tickets_table'} ) {
my $tid = shift;
unless ( $self->{'tickets_table'} ) {
- $self->{'tickets_table'} ||= $self->NewAlias('Tickets');
- $self->Join(
+ $self->{'tickets_table'} ||= $self->Join(
ALIAS1 => 'main',
FIELD1 => 'ObjectId',
ALIAS1 => 'main',
FIELD1 => 'ObjectId',
-
ALIAS2 => $self->{'tickets_table'}
,
+
TABLE2 => 'Tickets'
,
FIELD2 => 'id'
);
$self->Limit(
FIELD2 => 'id'
);
$self->Limit(
@@
-140,20
+138,6
@@
sub AddRecord {
return $self->SUPER::AddRecord($record);
}
return $self->SUPER::AddRecord($record);
}
-
-
-
-
-=head2 NewItem
-
-Returns an empty new RT::Transaction item
-
-=cut
-
-sub NewItem {
- my $self = shift;
- return(RT::Transaction->new($self->CurrentUser));
-}
RT::Base->_ImportOverlays();
1;
RT::Base->_ImportOverlays();
1;