[Rt-commit] rt branch, create-action, updated. 18966ded65481f514d94762795a2b75f7adab534
sartak at bestpractical.com
sartak at bestpractical.com
Tue Sep 22 13:20:04 EDT 2009
The branch, create-action has been updated
via 18966ded65481f514d94762795a2b75f7adab534 (commit)
from ea311cd09efad82a0247c58181c05171c81492b3 (commit)
Summary of changes:
lib/RT/Action/CreateTicket.pm | 4 ++++
lib/RT/View/Ticket/Create.pm | 1 +
2 files changed, 5 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit 18966ded65481f514d94762795a2b75f7adab534
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Tue Sep 22 13:19:54 2009 -0400
Add attachments field
diff --git a/lib/RT/Action/CreateTicket.pm b/lib/RT/Action/CreateTicket.pm
index d85227d..82f0703 100644
--- a/lib/RT/Action/CreateTicket.pm
+++ b/lib/RT/Action/CreateTicket.pm
@@ -26,6 +26,10 @@ use Jifty::Action schema {
max_length is 200,
label is _('Subject');
+ param attachments =>
+ render as 'upload',
+ label is _('Attach file');
+
param content =>
render as 'textarea',
label is _('Describe the issue below');
diff --git a/lib/RT/View/Ticket/Create.pm b/lib/RT/View/Ticket/Create.pm
index 558593d..1a1d0b9 100644
--- a/lib/RT/View/Ticket/Create.pm
+++ b/lib/RT/View/Ticket/Create.pm
@@ -112,6 +112,7 @@ sub show_basics {
}
render_param($create, 'subject');
+ render_param($create, 'attachments');
render_param($create, 'content');
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list