[Bps-public-commit] r16169 - in sd/trunk: .
sartak at bestpractical.com
sartak at bestpractical.com
Tue Sep 30 12:41:41 EDT 2008
Author: sartak
Date: Tue Sep 30 12:41:41 2008
New Revision: 16169
Modified:
sd/trunk/ (props changed)
sd/trunk/lib/App/SD/Model/Ticket.pm
Log:
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:41 2008
@@ -51,6 +51,18 @@
return 1;
}
+=head2 default_prop_reported_by
+
+Returns a string of the default value of the C<reported_by> prop.
+(Currently, this is the config variable C<reporter_email> or
+the environmental variable C<EMAIL>.)
+
+=cut
+
+sub default_prop_reported_by {
+ shift->app_handle->config->{reporter_email} or $ENV{EMAIL}
+}
+
=head2 _default_summary_format
The default ticket summary format (used for displaying tickets in a
More information about the Bps-public-commit
mailing list