~bestpractical/rt/master

« back to all changes in this revision

Viewing changes to share/html/Ticket/ModifyPeople.html

  • Committer: sunnavy
  • Date: 2023-10-19 19:45:11 UTC
  • mfrom: (8471.1.577)
  • Revision ID: git-v1:9fca83d11d15fb8034308194b9c9052d5df7d454
Merge branch '5.0-trunk'

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
    <input type="hidden" name="autorecipient" value="<% $addr %>">
79
79
      <div class="form-check">
80
80
        <input type="checkbox" class="form-check-input" name="checked_recipient" id="checked_recipient_<%$addr%>" value="<%$addr%>" <% $recips{$addr} ? "checked" : "" %>>
81
 
        <label class="form-check-label" for="checked_recipient_<%$addr%>"><& /Elements/ShowUser, Address => Email::Address->parse($addr) &></label>
 
81
        <label class="form-check-label" for="checked_recipient_<%$addr%>"><& /Elements/ShowUser, Address => Email::Address->parse($addr) &>
 
82
%   if ( !$notify_actor && $addr eq ($session{CurrentUser}->EmailAddress // '') ) {
 
83
    <span class="hints"><i>
 
84
      <&|/l&>RT won't send you mail for ticket updates you make.</&>
 
85
%     if ( $session{CurrentUser}->HasRight( Right => 'ModifySelf', Object => RT->System ) ) {
 
86
      <&|/l_unsafe, '<a target="_blank" href="' . RT->Config->Get('WebPath') . '/Prefs/Other.html">' . loc('Preferences') . '</a>'&>You can adjust this setting on the [_1] page.</&>
 
87
%     }
 
88
    </i></span>
 
89
%   }
 
90
        </label>
82
91
      </div>
83
92
  </li>
84
93
% }
119
128
}
120
129
 
121
130
# Use the ticket's scrips to figure out the new list of recipients.
 
131
my $notify_actor = RT->Config->Get( 'NotifyActor', $session{CurrentUser} );
 
132
 
 
133
# Force to notify actor to list current user
 
134
require RT::Action::Notify;
 
135
local $RT::Action::Notify::ALWAYS_NOTIFY_ACTOR = 1;
 
136
 
122
137
my @txns = $Ticket->DryRun(
123
138
    sub {
124
139
        my $MIME = MIME::Entity->build( Type => "text/plain", Data => "" );