[Rt-commit] rt branch, create-action, updated. 04a91a3916380ee9fedae590b2b456e62c196092
sartak at bestpractical.com
sartak at bestpractical.com
Tue Sep 1 07:30:23 EDT 2009
The branch, create-action has been updated
via 04a91a3916380ee9fedae590b2b456e62c196092 (commit)
from 360b440a4e8bd012a6ef448af538598772b7ed02 (commit)
Summary of changes:
lib/RT/View/Ticket/Create.pm | 2 +-
share/html/Ticket/Display.html | 4 +++-
2 files changed, 4 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 04a91a3916380ee9fedae590b2b456e62c196092
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Tue Sep 1 07:29:55 2009 -0400
Make create go to display and have display pluck out the action result if needed
diff --git a/lib/RT/View/Ticket/Create.pm b/lib/RT/View/Ticket/Create.pm
index d8ced20..8e7b691 100644
--- a/lib/RT/View/Ticket/Create.pm
+++ b/lib/RT/View/Ticket/Create.pm
@@ -67,7 +67,7 @@ template 'create' => page {
});
form {
- form_next_page url => '/';
+ form_next_page url => '/Ticket/Display.html';
render_action $create;
form_submit( label => _('Create') );
};
diff --git a/share/html/Ticket/Display.html b/share/html/Ticket/Display.html
index dd40440..3ac0d13 100755
--- a/share/html/Ticket/Display.html
+++ b/share/html/Ticket/Display.html
@@ -95,6 +95,8 @@ $collapsed => undef
<%INIT>
+$id ||= Jifty->web->response->result('create_ticket')->content('id');
+
$m->callback( ticket_obj => $ticket_obj, args_ref => \%ARGS, callback_name => 'Initial' );
my (@Actions, $Tickets);
@@ -139,7 +141,7 @@ if ($ARGS{'id'} eq 'new') {
}
# }}}
} else {
- $ticket_obj ||= load_ticket($ARGS{'id'});
+ $ticket_obj ||= load_ticket($id);
$m->callback( callback_name => 'BeforeProcessArguments',
ticket_obj => $ticket_obj, tickets => $Tickets,
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list