[Bps-public-commit] r16168 - in sd/trunk: .
sartak at bestpractical.com
sartak at bestpractical.com
Tue Sep 30 12:41:36 EDT 2008
Author: sartak
Date: Tue Sep 30 12:41:35 2008
New Revision: 16168
Modified:
sd/trunk/ (props changed)
sd/trunk/lib/App/SD/Model/Ticket.pm
Log:
r73299 at onn: sartak | 2008-09-30 12:40:20 -0400
Canonicalize "resolved" to "closed"
Modified: sd/trunk/lib/App/SD/Model/Ticket.pm
==============================================================================
--- sd/trunk/lib/App/SD/Model/Ticket.pm (original)
+++ sd/trunk/lib/App/SD/Model/Ticket.pm Tue Sep 30 12:41:35 2008
@@ -28,6 +28,29 @@
shift->app_handle->config->{reporter_email} or $ENV{EMAIL}
}
+=head2 canonicalize_prop_status
+
+resolved is called closed.
+
+=cut
+
+my %canonicalize_status = (
+ resolved => 'closed',
+);
+
+sub canonicalize_prop_status {
+ my $self = shift;
+ my %args = @_;
+
+ my $props = $args{props};
+
+ if (defined $canonicalize_status{ $props->{status} }) {
+ $props->{status} = $canonicalize_status{ $props->{status} };
+ }
+
+ return 1;
+}
+
=head2 _default_summary_format
The default ticket summary format (used for displaying tickets in a
More information about the Bps-public-commit
mailing list