[Rt-commit] r16132 - in rt/branches/3.999-DANGEROUS: lib/RT/Model
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Sun Sep 28 04:31:29 EDT 2008
Author: sunnavy
Date: Sun Sep 28 04:31:29 2008
New Revision: 16132
Modified:
rt/branches/3.999-DANGEROUS/ (props changed)
rt/branches/3.999-DANGEROUS/lib/RT/Model/Ticket.pm
Log:
r16931 at sunnavys-mb: sunnavy | 2008-09-28 16:08:24 +0800
we want record utc times in transaction
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 Sun Sep 28 04:31:29 2008
@@ -2670,6 +2670,15 @@
#Take care of the old value we really don't want to get in an ACL loop.
# so ask the super::_value
my $Old = $self->SUPER::_value( $args{'column'} );
+ if ( $args{'column'} =~ /due|starts|started|told/ ) {
+ # we want the real value in db, without filter
+ my $date = RT::Date->new();
+ $date->set(
+ format => 'unknown',
+ value => $Old,
+ );
+ $Old = $date->iso;
+ }
if ( $Old && $args{'value'} && $Old eq $args{'value'} ) {
More information about the Rt-commit
mailing list