[Rt-commit] rt branch, create-action, updated. 6d028f6f0cc7a180211c465218b3b98f3f150e99
sartak at bestpractical.com
sartak at bestpractical.com
Wed Sep 23 09:40:58 EDT 2009
The branch, create-action has been updated
via 6d028f6f0cc7a180211c465218b3b98f3f150e99 (commit)
from ecf45f9ec543dda379293bef629df4c2175d28ab (commit)
Summary of changes:
lib/RT/Action/CreateTicket.pm | 15 +++++++++++++++
lib/RT/View/Ticket/Create.pm | 3 +++
2 files changed, 18 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit 6d028f6f0cc7a180211c465218b3b98f3f150e99
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Wed Sep 23 09:40:47 2009 -0400
Add time duration fields to ticket creation
diff --git a/lib/RT/Action/CreateTicket.pm b/lib/RT/Action/CreateTicket.pm
index c5fc1e4..5b2f56b 100644
--- a/lib/RT/Action/CreateTicket.pm
+++ b/lib/RT/Action/CreateTicket.pm
@@ -45,6 +45,21 @@ use Jifty::Action schema {
render as 'text',
display_length is 3,
label is _('Final Priority');
+
+ param time_estimated =>
+ render as 'text', # should be duration
+ display_length is 3,
+ label is _('Time Estimated');
+
+ param time_worked =>
+ render as 'text', # should be duration
+ display_length is 3,
+ label is _('Time Worked');
+
+ param time_left =>
+ render as 'text', # should be duration
+ display_length is 3,
+ label is _('Time Left');
};
sub after_set_queue {
diff --git a/lib/RT/View/Ticket/Create.pm b/lib/RT/View/Ticket/Create.pm
index 1a1d0b9..4da830b 100644
--- a/lib/RT/View/Ticket/Create.pm
+++ b/lib/RT/View/Ticket/Create.pm
@@ -132,6 +132,9 @@ sub show_details {
render_param($create, 'initial_priority');
render_param($create, 'final_priority');
+ render_param($create, 'time_estimated');
+ render_param($create, 'time_worked');
+ render_param($create, 'time_left');
$create->button(label => _('Create'));
};
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list