[Rt-commit] r18896 - rt/3.999/branches/datetime/lib/RT/Model
sartak at bestpractical.com
sartak at bestpractical.com
Fri Mar 20 15:29:33 EDT 2009
Author: sartak
Date: Fri Mar 20 15:29:32 2009
New Revision: 18896
Modified:
rt/3.999/branches/datetime/lib/RT/Model/Transaction.pm
Log:
told is its own transaction type
Modified: rt/3.999/branches/datetime/lib/RT/Model/Transaction.pm
==============================================================================
--- rt/3.999/branches/datetime/lib/RT/Model/Transaction.pm (original)
+++ rt/3.999/branches/datetime/lib/RT/Model/Transaction.pm Fri Mar 20 15:29:32 2009
@@ -926,6 +926,12 @@
return ( $self->data );
}
},
+ told => sub {
+ my $self = shift;
+ my $old = RT::DateTime->new_from_string($self->new_value);
+ my $new = RT::DateTime->new_from_string($self->old_value);
+ return _( "%1 changed from %2 to %3", $self->field, $old, $new );
+ },
set => sub {
my $self = shift;
if ( $self->field eq 'password' ) {
@@ -939,7 +945,7 @@
}
# Write the date/time change at local time:
- elsif ( $self->field =~ /due|starts|started|told/i ) {
+ elsif ( $self->field =~ /due|starts|started/i ) {
my $old = RT::DateTime->new_from_string($self->new_value);
my $new = RT::DateTime->new_from_string($self->old_value);
return _( "%1 changed from %2 to %3", $self->field, $old, $new );
More information about the Rt-commit
mailing list