[Rt-commit] r10639 - in rt/branches/3.999-DANGEROUS/lib/RT: . Model
ruz at bestpractical.com
ruz at bestpractical.com
Thu Jan 31 20:51:12 EST 2008
Author: ruz
Date: Thu Jan 31 20:51:12 2008
New Revision: 10639
Modified:
rt/branches/3.999-DANGEROUS/lib/RT/Model/Attachment.pm
rt/branches/3.999-DANGEROUS/lib/RT/Model/Ticket.pm
rt/branches/3.999-DANGEROUS/lib/RT/Model/Transaction.pm
rt/branches/3.999-DANGEROUS/lib/RT/Record.pm
rt/branches/3.999-DANGEROUS/lib/RT/ScripAction/SendEmail.pm
Log:
* in Attachment/Transaction/Ticket
Modified: rt/branches/3.999-DANGEROUS/lib/RT/Model/Attachment.pm
==============================================================================
--- rt/branches/3.999-DANGEROUS/lib/RT/Model/Attachment.pm (original)
+++ rt/branches/3.999-DANGEROUS/lib/RT/Model/Attachment.pm Thu Jan 31 20:51:12 2008
@@ -72,12 +72,12 @@
id => 0,
transaction_id => 0,
parent => 0,
- Attachment => undef,
+ attachment => undef,
@_
);
# For ease of reference
- my $Attachment = $args{'Attachment'};
+ my $Attachment = $args{'attachment'};
# if we didn't specify a ticket, we need to bail
unless ( $args{'transaction_id'} ) {
@@ -126,7 +126,7 @@
my ($id) = $SubAttachment->create(
transaction_id => $args{'transaction_id'},
parent => $id,
- Attachment => $part,
+ attachment => $part,
);
unless ($id) {
Jifty->log->fatal( "Attachment insert failed: "
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 Jan 31 20:51:12 2008
@@ -2447,7 +2447,7 @@
? $LINKDIRMAP{ $args{'type'} }->{base}
: $LINKDIRMAP{ $args{'type'} }->{target},
old_value => $self->uri,
- ActivateScrips => !RT->config->get('LinkTransactionsRun1Scrip'),
+ activate_scrips => !RT->config->get('LinkTransactionsRun1Scrip'),
time_taken => 0,
);
Jifty->log->error("Couldn't create transaction: $Msg") unless $val;
@@ -2589,7 +2589,7 @@
? $LINKDIRMAP{ $args{'type'} }->{base}
: $LINKDIRMAP{ $args{'type'} }->{target},
new_value => $self->uri,
- ActivateScrips => !RT->config->get('LinkTransactionsRun1Scrip'),
+ activate_scrips => !RT->config->get('LinkTransactionsRun1Scrip'),
time_taken => 0,
);
Jifty->log->error("Couldn't create transaction: $msg") unless $val;
Modified: rt/branches/3.999-DANGEROUS/lib/RT/Model/Transaction.pm
==============================================================================
--- rt/branches/3.999-DANGEROUS/lib/RT/Model/Transaction.pm (original)
+++ rt/branches/3.999-DANGEROUS/lib/RT/Model/Transaction.pm Thu Jan 31 20:51:12 2008
@@ -285,7 +285,7 @@
old_value => undef,
new_value => undef,
mime_obj => undef,
- ActivateScrips => 1,
+ activate_scrips => 1,
commit_scrips => 1,
object_type => 'RT::Model::Ticket',
object_id => 0,
@@ -340,7 +340,7 @@
#Provide a way to turn off scrips if we need to
Jifty->log->debug(
'About to think about scrips for transaction #' . $self->id );
- if ( $args{'ActivateScrips'}
+ if ( $args{'activate_scrips'}
and $args{'object_type'} eq 'RT::Model::Ticket' )
{
$self->{'scrips'} = RT::Model::ScripCollection->new(
@@ -681,7 +681,7 @@
my $Attachment = RT::Model::Attachment->new;
my ( $id, $msg ) = $Attachment->create(
transaction_id => $self->id,
- Attachment => $mime_object
+ attachment => $mime_object
);
return ( $Attachment, $msg || _("Attachment Created") );
}
@@ -1213,8 +1213,8 @@
{
next unless length($value);
$self->add_custom_field_value(
- Field => $cfid,
- Value => $value,
+ field => $cfid,
+ value => $value,
record_transaction => 0,
);
}
Modified: rt/branches/3.999-DANGEROUS/lib/RT/Record.pm
==============================================================================
--- rt/branches/3.999-DANGEROUS/lib/RT/Record.pm (original)
+++ rt/branches/3.999-DANGEROUS/lib/RT/Record.pm Thu Jan 31 20:51:12 2008
@@ -1240,7 +1240,7 @@
data => undef,
field => undef,
mime_obj => undef,
- ActivateScrips => 1,
+ activate_scrips => 1,
commit_scrips => 1,
@_
);
@@ -1272,7 +1272,7 @@
old_reference => $old_ref,
reference_type => $ref_type,
mime_obj => $args{'mime_obj'},
- ActivateScrips => $args{'ActivateScrips'},
+ activate_scrips => $args{'activate_scrips'},
commit_scrips => $args{'commit_scrips'},
);
Modified: rt/branches/3.999-DANGEROUS/lib/RT/ScripAction/SendEmail.pm
==============================================================================
--- rt/branches/3.999-DANGEROUS/lib/RT/ScripAction/SendEmail.pm (original)
+++ rt/branches/3.999-DANGEROUS/lib/RT/ScripAction/SendEmail.pm Thu Jan 31 20:51:12 2008
@@ -539,7 +539,7 @@
type => $type,
Data => $msgid,
mime_obj => $mime_obj,
- ActivateScrips => 0
+ activate_scrips => 0
);
if ($id) {
More information about the Rt-commit
mailing list