[Rt-commit] r16422 - in rt/branches/3.999-DANGEROUS: .
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Tue Oct 21 10:56:38 EDT 2008
Author: sunnavy
Date: Tue Oct 21 10:56:38 2008
New Revision: 16422
Modified:
rt/branches/3.999-DANGEROUS/ (props changed)
rt/branches/3.999-DANGEROUS/share/html/Ticket/Display.html
Log:
r17253 at sunnavys-mb: sunnavy | 2008-10-21 22:49:12 +0800
manually process cf stuff in create step, *really* need to refactor later
Modified: rt/branches/3.999-DANGEROUS/share/html/Ticket/Display.html
==============================================================================
--- rt/branches/3.999-DANGEROUS/share/html/Ticket/Display.html (original)
+++ rt/branches/3.999-DANGEROUS/share/html/Ticket/Display.html Tue Oct 21 10:56:38 2008
@@ -119,6 +119,17 @@
Attachments => delete $session{'Attachments'},
%ARGS,
);
+#XXX bloody hack, should have a better way
+ my %cf_args;
+ for my $arg ( keys %ARGS ) {
+ if ( $arg =~ /J:A:F-(\d+)-edit-ticket-cfs/ ) {
+ $cf_args{$1} = $ARGS{$arg};
+ }
+ }
+ my $cf_action = RT::Action::EditTicketCFs->new( arguments => { id =>
+ $ticket_obj->id, %cf_args } );
+ $cf_action->take_action;
+
unless ( $ticket_obj->current_user_has_right('ShowTicket') ) {
abort("No permission to view newly Created ticket #".$ticket_obj->id.".");
}
More information about the Rt-commit
mailing list