[Rt-commit] r14204 - in rt/branches/3.999-DANGEROUS: lib/RT/Model lib/RT/ScripAction lib/RT/Shredder
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Thu Jul 17 04:52:50 EDT 2008
Author: sunnavy
Date: Thu Jul 17 04:52:47 2008
New Revision: 14204
Modified:
rt/branches/3.999-DANGEROUS/ (props changed)
rt/branches/3.999-DANGEROUS/lib/RT/Model/Ticket.pm
rt/branches/3.999-DANGEROUS/lib/RT/ScripAction/CreateTickets.pm
rt/branches/3.999-DANGEROUS/lib/RT/Shredder/Link.pm
Log:
r14611 at sunnavys-mb: sunnavy | 2008-07-17 16:49:50 +0800
Mode => mode
Modified: rt/branches/3.999-DANGEROUS/lib/RT/Model/Ticket.pm
==============================================================================
--- rt/branches/3.999-DANGEROUS/lib/RT/Model/Ticket.pm (original)
+++ rt/branches/3.999-DANGEROUS/lib/RT/Model/Ticket.pm Thu Jul 17 04:52:47 2008
@@ -656,9 +656,9 @@
my ( $wval, $wmsg ) = $self->_add_link(
type => $LINKTYPEMAP{$type}->{'type'},
- $LINKTYPEMAP{$type}->{'Mode'} => $link,
+ $LINKTYPEMAP{$type}->{'mode'} => $link,
silent => !$args{'_record_transaction'},
- 'silent_' . ( $LINKTYPEMAP{$type}->{'Mode'} eq 'base' ? 'target' : 'base' ) => 1,
+ 'silent_' . ( $LINKTYPEMAP{$type}->{'mode'} eq 'base' ? 'target' : 'base' ) => 1,
);
push @non_fatal_errors, $wmsg unless ($wval);
Modified: rt/branches/3.999-DANGEROUS/lib/RT/ScripAction/CreateTickets.pm
==============================================================================
--- rt/branches/3.999-DANGEROUS/lib/RT/ScripAction/CreateTickets.pm (original)
+++ rt/branches/3.999-DANGEROUS/lib/RT/ScripAction/CreateTickets.pm Thu Jul 17 04:52:47 2008
@@ -1184,7 +1184,7 @@
my ( $wval, $wmsg ) = $ticket->add_link(
type => $LINKTYPEMAP{$type}->{'type'},
- $LINKTYPEMAP{$type}->{'Mode'} => $link,
+ $LINKTYPEMAP{$type}->{'mode'} => $link,
silent => 1
);
Modified: rt/branches/3.999-DANGEROUS/lib/RT/Shredder/Link.pm
==============================================================================
--- rt/branches/3.999-DANGEROUS/lib/RT/Shredder/Link.pm (original)
+++ rt/branches/3.999-DANGEROUS/lib/RT/Shredder/Link.pm Thu Jul 17 04:52:47 2008
@@ -73,7 +73,7 @@
# add_link transactions
my $map = RT::Model::Ticket->LINKTYPEMAP;
my $link_meta = $map->{ $self->type };
- unless ( $link_meta && $link_meta->{'Mode'} && $link_meta->{'type'} ) {
+ unless ( $link_meta && $link_meta->{'mode'} && $link_meta->{'type'} ) {
RT::Shredder::Exception->throw( 'Wrong link link_meta, no record for ' . $self->type );
}
if ( $self->base_uri->is_local ) {
@@ -86,7 +86,7 @@
$objs->limit( column => 'new_value', value => $self->target );
while ( my ( $k, $v ) = each %$map ) {
next unless $v->{'type'} eq $link_meta->{'type'};
- next unless $v->{'Mode'} eq $link_meta->{'Mode'};
+ next unless $v->{'mode'} eq $link_meta->{'mode'};
$objs->limit( column => 'Field', value => $k );
}
push( @$list, $objs );
@@ -103,7 +103,7 @@
$objs->limit( column => 'new_value', value => $self->base );
while ( my ( $k, $v ) = each %$map ) {
next unless $v->{'type'} eq $link_meta->{'type'};
- next unless $v->{'Mode'} eq $reverse{ $link_meta->{'Mode'} };
+ next unless $v->{'mode'} eq $reverse{ $link_meta->{'mode'} };
$objs->limit( column => 'Field', value => $k );
}
push( @$list, $objs );
More information about the Rt-commit
mailing list