[Rt-commit] r16138 - rt/branches/3.999-DANGEROUS/lib/RT/View
clkao at bestpractical.com
clkao at bestpractical.com
Sun Sep 28 10:16:58 EDT 2008
Author: clkao
Date: Sun Sep 28 10:16:56 2008
New Revision: 16138
Modified:
rt/branches/3.999-DANGEROUS/lib/RT/View/Ticket.pm
Log:
only manually register our action if the form is not open.
Modified: rt/branches/3.999-DANGEROUS/lib/RT/View/Ticket.pm
==============================================================================
--- rt/branches/3.999-DANGEROUS/lib/RT/View/Ticket.pm (original)
+++ rt/branches/3.999-DANGEROUS/lib/RT/View/Ticket.pm Sun Sep 28 10:16:56 2008
@@ -58,8 +58,9 @@
div { { class is 'ticket-links-current' };
h3 { _("Current Links") };
- my $delete_links = new_action( class => 'BulkUpdateLinks' );
- $delete_links->register; # don't need this if we open form{} with jifty
+ my $delete_links = new_action( class => 'BulkUpdateLinks', moniker => 'delete-links' );
+ $delete_links->register
+ unless Jifty->web->form->is_open; # don't need this if we open form{} with jifty
render_param( $delete_links => 'delete', default_value => 1, render_as => 'hidden' );
input { { type is 'hidden', class is 'hidden', name is 'id', value is $ticket->id } }; # remove later.
More information about the Rt-commit
mailing list