[Rt-commit] r16112 - in rt/branches/3.999-DANGEROUS: .
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Sat Sep 27 11:39:30 EDT 2008
Author: sunnavy
Date: Sat Sep 27 11:39:30 2008
New Revision: 16112
Modified:
rt/branches/3.999-DANGEROUS/ (props changed)
rt/branches/3.999-DANGEROUS/share/html/Ticket/ModifyAll.html
rt/branches/3.999-DANGEROUS/share/html/Ticket/ModifyDates.html
Log:
r16897 at sunnavys-mb: sunnavy | 2008-09-27 23:38:16 +0800
use TicketUpdateDates' get_results to get messages
Modified: rt/branches/3.999-DANGEROUS/share/html/Ticket/ModifyAll.html
==============================================================================
--- rt/branches/3.999-DANGEROUS/share/html/Ticket/ModifyAll.html (original)
+++ rt/branches/3.999-DANGEROUS/share/html/Ticket/ModifyAll.html Sat Sep 27 11:39:30 2008
@@ -54,7 +54,6 @@
% $m->callback(Callbackname => 'before_action_list', Actions => \@results, args_ref => \%ARGS, ticket => $Ticket);
<& /Elements/ListActions, actions => \@results &>
-<% Jifty->web->render_messages %>
<% Jifty->web->form->start( submit_to => '?id=' . $Ticket->id ) %>
%#<form method="post" action="ModifyAll.html" enctype="multipart/form-data">
<input type="hidden" class="hidden" name="id" value="<%$Ticket->id%>" />
@@ -139,6 +138,7 @@
my $Ticket = load_ticket($id);
my $CustomFields = $Ticket->queue_obj->ticket_custom_fields();
+my $date_action = Jifty->web->new_action( class => 'TicketUpdateDates', record => $Ticket );
# call this to show up hints of valid cf values.
$m->comp(
@@ -194,6 +194,9 @@
push @results, process_ticket_basics( ticket_obj => $Ticket, args_ref => \%ARGS );
}
@lresults = process_ticket_links( ticket_obj => $Ticket, args_ref => \%ARGS);
+
+ at dresults = $date_action->get_results;
+
push @results, @wresults;
push @results, @dresults;
push @results, @lresults;
@@ -202,7 +205,6 @@
# undef so that transaction_batch scrips run and update the ticket
$Ticket = undef;
$Ticket = load_ticket($id);
-my $date_action = Jifty->web->new_action( class => 'TicketUpdateDates', record => $Ticket );
# If they've gone and moved the ticket to somewhere they can't see, etc...
# TODO: display the results, even if we can't display the ticket.
Modified: rt/branches/3.999-DANGEROUS/share/html/Ticket/ModifyDates.html
==============================================================================
--- rt/branches/3.999-DANGEROUS/share/html/Ticket/ModifyDates.html (original)
+++ rt/branches/3.999-DANGEROUS/share/html/Ticket/ModifyDates.html Sat Sep 27 11:39:30 2008
@@ -52,7 +52,8 @@
title => _('Modify dates for #%1', $ticket_obj->id) &>
% $m->callback(Callbackname => 'before_action_list', args_ref => \%ARGS, ticket => $ticket_obj);
-<% Jifty->web->render_messages %>
+<& /Elements/ListActions, actions => \@results &>
+
<% Jifty->web->form->start( submit_to => '?id=' . $ticket_obj->id ) %>
<&| /Widgets/TitleBox,title => _('Modify dates for ticket # %1', $ticket_obj->id), class=> 'ticket-info-dates' &>
% for my $field ( @fields ) {
@@ -69,6 +70,7 @@
my $ticket_obj = load_ticket($id);
my $action = Jifty->web->new_action( class => 'TicketUpdateDates', record =>
$ticket_obj );
+my @results = $action->get_results;
</%INIT>
<%ARGS>
More information about the Rt-commit
mailing list