[Rt-commit] r18178 - in rt/3.999/branches/merge_to_3.8.2: .
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Wed Feb 4 03:41:35 EST 2009
Author: sunnavy
Date: Wed Feb 4 03:41:35 2009
New Revision: 18178
Modified:
rt/3.999/branches/merge_to_3.8.2/ (props changed)
rt/3.999/branches/merge_to_3.8.2/lib/RT/Model/Ticket.pm
Log:
r19528 at sunnavys-mb: sunnavy | 2009-02-04 16:41:15 +0800
go on case fixes for Model/Ticket.pm
Modified: rt/3.999/branches/merge_to_3.8.2/lib/RT/Model/Ticket.pm
==============================================================================
--- rt/3.999/branches/merge_to_3.8.2/lib/RT/Model/Ticket.pm (original)
+++ rt/3.999/branches/merge_to_3.8.2/lib/RT/Model/Ticket.pm Wed Feb 4 03:41:35 2009
@@ -2309,8 +2309,8 @@
# If we're not stealing and the ticket has an owner and it's not
# the current user
- if ( $Type ne 'Steal'
- and $Type ne 'Force'
+ if ( $Type ne 'steal'
+ and $Type ne 'force'
and $old_owner_obj->id != RT->nobody->id
and $old_owner_obj->id != $self->current_user->id )
{
@@ -2396,7 +2396,7 @@
sub take {
my $self = shift;
- return ( $self->set_owner( $self->current_user->id, 'Take' ) );
+ return ( $self->set_owner( $self->current_user->id, 'take' ) );
}
@@ -2409,7 +2409,7 @@
sub untake {
my $self = shift;
- return ( $self->set_owner( RT->nobody->user_object->id, 'Untake' ) );
+ return ( $self->set_owner( RT->nobody->user_object->id, 'untake' ) );
}
=head2 steal
@@ -2425,7 +2425,7 @@
if ( $self->is_owner( $self->current_user ) ) {
return ( 0, _("You already own this ticket") );
} else {
- return ( $self->set_owner( $self->current_user->id, 'Steal' ) );
+ return ( $self->set_owner( $self->current_user->id, 'steal' ) );
}
More information about the Rt-commit
mailing list