From 33beebf4cb42eba3e1dd868ad5e0af102de961da Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Sat, 29 Sep 2012 16:36:46 -0700 Subject: update address standardization for cust_location changes --- rt/share/html/Elements/GnuPG/SignEncryptWidget | 33 ++++++++++---------------- 1 file changed, 13 insertions(+), 20 deletions(-) (limited to 'rt/share/html/Elements/GnuPG/SignEncryptWidget') diff --git a/rt/share/html/Elements/GnuPG/SignEncryptWidget b/rt/share/html/Elements/GnuPG/SignEncryptWidget index 8be14af73..0ae0f841f 100644 --- a/rt/share/html/Elements/GnuPG/SignEncryptWidget +++ b/rt/share/html/Elements/GnuPG/SignEncryptWidget @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2011 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -46,10 +46,15 @@ %# %# END BPS TAGGED BLOCK }}} - - +% my $columnsplit = " +
<% loc('Sign')%><& /Widgets/Form/Boolean:InputOnly, Name => 'Sign', CurrentValue => $self->{'Sign'} &> -using <& SelectKeyForSigning, User => $session{'CurrentUser'}->UserObj &> -"; +<% loc( 'Sign[_1][_2] using [_3]', + $columnsplit, + $m->scomp('/Widgets/Form/Boolean:InputOnly', + Name => 'Sign', CurrentValue => $self->{'Sign'} + ), + $m->scomp('SelectKeyForSigning', User => $session{'CurrentUser'}->UserObj ), +) |n %><% loc('Encrypt')%> <& /Widgets/Form/Boolean:InputOnly, Name => 'Encrypt', CurrentValue => $self->{'Encrypt'} &>
@@ -143,23 +148,11 @@ if ( $self->{'Encrypt'} ) { my @recipients; if ( $Operation eq 'Update' ) { - # skip any email addresses that we won't be sending mail to - my %squelch = $m->comp( - '/Ticket/Elements/PreviewScrips:SquelchRecipients', - %$self, - TicketObj => $TicketObj - ); - - @recipients = $m->comp( - '/Ticket/Elements/PreviewScrips:GetRecipients', - %$self, TicketObj => $TicketObj - ); + @recipients = $TicketObj->DryRun(%$self)->Recipients; } elsif ( $Operation eq 'Create' ) { - @recipients = $m->comp( - '/Ticket/Elements/PreviewScrips:GetRecipientsOnCreate', - %$self, - ); + $TicketObj = RT::Ticket->new( $session{'CurrentUser'} ); + @recipients = $TicketObj->DryRunCreate(%$self)->Recipients; } else { $RT::Logger->crit('Incorrect operation: '. $Operation ); -- cgit v1.2.1