[Rt-commit] rt branch, 4.4-trunk, updated. rt-4.4.4-257-g97297bef4b

? sunnavy sunnavy at bestpractical.com
Fri Mar 5 17:03:15 EST 2021


The branch, 4.4-trunk has been updated
       via  97297bef4ba94ab2edefbc79c0e6548c5d27931d (commit)
      from  591579de086cdb279dcb9723e3c51fd0a6f0bdf7 (commit)

Summary of changes:
 share/html/Helpers/ShowSimplifiedRecipients | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

- Log -----------------------------------------------------------------
commit 97297bef4ba94ab2edefbc79c0e6548c5d27931d
Author: Dianne Skoll <dianne at bestpractical.com>
Date:   Wed Dec 9 13:51:41 2020 -0500

    Allow caller to force render TxnRecipients input in ShowSimplifiedRecipients
    
    On Ticket update page, the input is rendered in either
    "ShowSimplifiedRecipients" or "PreviewScrips", depending on if current
    user has "ShowOutgoingEmail" right or not.
    
    There are cases where only "ShowSimplifiedRecipients" is included on
    page(e.g. RT::IR), thus we need this new option to force render it.

diff --git a/share/html/Helpers/ShowSimplifiedRecipients b/share/html/Helpers/ShowSimplifiedRecipients
index 30512532fb..8ab37acff4 100644
--- a/share/html/Helpers/ShowSimplifiedRecipients
+++ b/share/html/Helpers/ShowSimplifiedRecipients
@@ -140,7 +140,7 @@ $submitted{$_} = 1 for split /,/, $ARGS{TxnRecipients};
 &>Uncheck boxes to disable notifications to the listed recipients <b>for this transaction only</b>; persistent squelching is managed on the <a href="[_1]">People page</a>.</&>
 </p>
 
-% unless ($TicketObj->CurrentUserHasRight('ShowOutgoingEmail')) {
+% if (!$TicketObj->CurrentUserHasRight('ShowOutgoingEmail') || $ARGS{'RenderTxnRecipientsInput'}) {
     <input type="hidden" name="TxnRecipients" value="<% join ",",sort keys %recips %>" />
 % }
 % $m->abort();

-----------------------------------------------------------------------


More information about the rt-commit mailing list