[Rt-commit] rt branch, 3.999-trunk, updated. 853464cbadbc698a7d0676079fe6692e76599e59
sartak at bestpractical.com
sartak at bestpractical.com
Wed Dec 2 06:43:22 EST 2009
The branch, 3.999-trunk has been updated
via 853464cbadbc698a7d0676079fe6692e76599e59 (commit)
from e85d523c05e61ab5dfe0bc2d43e75d57cea20712 (commit)
Summary of changes:
lib/RT/Model/Ticket.pm | 20 +++++++++++++++++++-
1 files changed, 19 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 853464cbadbc698a7d0676079fe6692e76599e59
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Wed Dec 2 06:42:27 2009 -0500
Fix starts/started
diff --git a/lib/RT/Model/Ticket.pm b/lib/RT/Model/Ticket.pm
index a5204b6..0a43aa2 100755
--- a/lib/RT/Model/Ticket.pm
+++ b/lib/RT/Model/Ticket.pm
@@ -867,12 +867,30 @@ Try to parse the starts date as a string.
sub canonicalize_starts {
my $self = shift;
my $starts = shift;
- my $other = shift;
if (defined $starts) {
return RT::DateTime->new_from_string($starts);
}
+ return RT::DateTime->new_unset;
+
+}
+
+=head2 canonicalize_started
+
+Try to parse the started date as a string.
+
+=cut
+
+sub canonicalize_started {
+ my $self = shift;
+ my $started = shift;
+ my $other = shift;
+
+ if (defined $started) {
+ return RT::DateTime->new_from_string($started);
+ }
+
my $queue = $self->queue_id || $other->{queue};
my $queue_obj = RT::Model::Queue->new;
$queue_obj->load($queue);
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list