[Rt-commit] r16029 - in rt/branches/3.999-DANGEROUS: lib/RT/Model
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Mon Sep 22 04:27:52 EDT 2008
Author: sunnavy
Date: Mon Sep 22 04:27:42 2008
New Revision: 16029
Modified:
rt/branches/3.999-DANGEROUS/ (props changed)
rt/branches/3.999-DANGEROUS/lib/RT/Model/Ticket.pm
Log:
r16786 at sunnavys-mb: sunnavy | 2008-09-19 22:16:35 +0800
tiny fix
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 Mon Sep 22 04:27:42 2008
@@ -1408,7 +1408,7 @@
}
#We create a date object to catch date weirdness
- my $time_obj = RT::Date->new( $self->current_user() );
+ my $time_obj = RT::Date->new( current_user => $self->current_user() );
if ($time) {
$time_obj->set( format => 'ISO', value => $time );
} else {
@@ -1421,7 +1421,7 @@
#We need $TicketAsSystem, in case the current user doesn't have
#ShowTicket
#
- my $TicketAsSystem = RT::Model::Ticket->new( RT->system_user );
+ my $TicketAsSystem = RT::Model::Ticket->new( current_user => RT->system_user );
$TicketAsSystem->load( $self->id );
if ( $TicketAsSystem->status eq 'new' ) {
$TicketAsSystem->set_status('open');
More information about the Rt-commit
mailing list