[Rt-commit] rt branch, update-action, updated. 0ce1ce7a57d05ab6e4ae64e636b09670ebb890a1
sartak at bestpractical.com
sartak at bestpractical.com
Thu Dec 10 06:30:57 EST 2009
The branch, update-action has been updated
via 0ce1ce7a57d05ab6e4ae64e636b09670ebb890a1 (commit)
from 5ac3fc2698b1c7410a22a419bf0d4d31f388c03a (commit)
Summary of changes:
lib/RT/Dispatcher.pm | 14 ++++++++++++++
lib/RT/View/Ticket.pm | 3 +++
2 files changed, 17 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit 0ce1ce7a57d05ab6e4ae64e636b09670ebb890a1
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Thu Dec 10 06:30:22 2009 -0500
Stitch /ticket/modify into the dispatcher
diff --git a/lib/RT/Dispatcher.pm b/lib/RT/Dispatcher.pm
index 118aa27..cbdd903 100644
--- a/lib/RT/Dispatcher.pm
+++ b/lib/RT/Dispatcher.pm
@@ -747,6 +747,20 @@ on '/ticket/create' => run {
}
};
+on '/ticket/modify' => run {
+ my $action = Jifty->web->request->action('update_ticket');
+ my $id = $action ? $action->argument('id') : get('id');
+ if (!defined($id)) {
+ die "no ticket selected";
+ }
+ else {
+ my $ticket = RT::Model::Ticket->new;
+ $ticket->load($id);
+ set(ticket => $ticket);
+ show '/ticket/modify';
+ }
+};
+
# Backward compatibility with old RT URLs
before '/NoAuth/Logout.html' => run { redirect '/logout' };
diff --git a/lib/RT/View/Ticket.pm b/lib/RT/View/Ticket.pm
index 17e31bf..fde2d30 100644
--- a/lib/RT/View/Ticket.pm
+++ b/lib/RT/View/Ticket.pm
@@ -59,5 +59,8 @@ alias RT::View::Ticket::Links under '/';
require RT::View::Ticket::Create;
alias RT::View::Ticket::Create under '/';
+require RT::View::Ticket::Update;
+alias RT::View::Ticket::Update under '/';
+
1;
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list