diff options
author | Ivan Kohler <ivan@freeside.biz> | 2012-07-06 02:34:36 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2012-07-06 02:34:36 -0700 |
commit | 8f3139933969cd2bc2a7d866d713c267f6d3cb18 (patch) | |
tree | 330a549c0640e107f78f206954acc67ef74422a2 /rt/lib | |
parent | 4e13c49d6414a87fddb796dd4adc077077b48f6e (diff) |
fix owner change messages, RT#13952
Diffstat (limited to 'rt/lib')
-rwxr-xr-x | rt/lib/RT/Transaction.pm | 2 | ||||
-rw-r--r-- | rt/lib/RT/Transaction_Vendor.pm | 29 |
2 files changed, 1 insertions, 30 deletions
diff --git a/rt/lib/RT/Transaction.pm b/rt/lib/RT/Transaction.pm index 1f1bab15a..bd4d83546 100755 --- a/rt/lib/RT/Transaction.pm +++ b/rt/lib/RT/Transaction.pm @@ -884,7 +884,7 @@ sub BriefDescription { } # Write the date/time change at local time: - elsif ($self->Field =~ /Due|Starts|Started|Told/) { + elsif ($self->Field =~ /Due|Starts|Started|Told|WillResolve/) { my $t1 = RT::Date->new($self->CurrentUser); $t1->Set(Format => 'ISO', Value => $self->NewValue); my $t2 = RT::Date->new($self->CurrentUser); diff --git a/rt/lib/RT/Transaction_Vendor.pm b/rt/lib/RT/Transaction_Vendor.pm index 99198c2f0..2ba800ddf 100644 --- a/rt/lib/RT/Transaction_Vendor.pm +++ b/rt/lib/RT/Transaction_Vendor.pm @@ -2,35 +2,6 @@ package RT::Transaction; use strict; use vars qw(%_BriefDescriptions); -$_BriefDescriptions{'Set'} = sub { - my $self = shift; - if ( $self->Field eq 'Password' ) { - return $self->loc('Password changed'); - } - elsif ( $self->Field eq 'Queue' ) { - my $q1 = new RT::Queue( $self->CurrentUser ); - $q1->Load( $self->OldValue ); - my $q2 = new RT::Queue( $self->CurrentUser ); - $q2->Load( $self->NewValue ); - return $self->loc("[_1] changed from [_2] to [_3]", - $self->loc($self->Field) , $q1->Name , $q2->Name); - } - - # Write the date/time change at local time: - elsif ($self->Field =~ /Due|Starts|Started|Told|WillResolve/) { - my $t1 = new RT::Date($self->CurrentUser); - $t1->Set(Format => 'ISO', Value => $self->NewValue); - my $t2 = new RT::Date($self->CurrentUser); - $t2->Set(Format => 'ISO', Value => $self->OldValue); - return $self->loc( "[_1] changed from [_2] to [_3]", $self->loc($self->Field), $t2->AsString, $t1->AsString ); - } - else { - return $self->loc( "[_1] changed from [_2] to [_3]", - $self->loc($self->Field), - ($self->OldValue? "'".$self->OldValue ."'" : $self->loc("(no value)")) , "'". $self->NewValue."'" ); - } -}; - $_BriefDescriptions{'Touch'} = sub { 'Updated' }; 1; |