Hello
I recently upgraded to RT 5.0.0. With the new UI changes when updating a ticket using Jumbo, I want to change Update Ticket type from defaulting to comment (Not sent to requestors) to reply instead.
any ideas how to go about this.
Hello
I recently upgraded to RT 5.0.0. With the new UI changes when updating a ticket using Jumbo, I want to change Update Ticket type from defaulting to comment (Not sent to requestors) to reply instead.
any ideas how to go about this.
If you make a local copy of /opt/rt5/share/html/Ticket/ModifyAll.html
into /opt/rt5/local/html/Ticket/ModifyAll.html
, you can tweak this so that has the roles reversed. This context diff should help:
diff -c /opt/rt5/local/html/Ticket/ModifyAll.html /opt/rt5/share/html/Ticket/ModifyAll.html
*** /opt/rt5/local/html/Ticket/ModifyAll.html 2021-02-26 09:01:34.012761631 +0000
--- /opt/rt5/share/html/Ticket/ModifyAll.html 2020-07-28 13:13:40.170766728 +0100
***************
*** 90,101 ****
<div class="label col-3"><&|/l&>Update Type</&>:</div>
<div class="value col-9">
<select name="UpdateType" id="UpdateType" class="form-control selectpicker">
- % if ($CanRespond) {
- <option value="response"><&|/l&>Reply to requestors</&></option>
- % }
% if ($CanComment) {
<option value="private" ><&|/l&>Comments (Not sent to requestors)</&></option>
% }
</select>
% $m->callback( %ARGS, CallbackName => 'AfterUpdateType' );
</div>
--- 90,101 ----
<div class="label col-3"><&|/l&>Update Type</&>:</div>
<div class="value col-9">
<select name="UpdateType" id="UpdateType" class="form-control selectpicker">
% if ($CanComment) {
<option value="private" ><&|/l&>Comments (Not sent to requestors)</&></option>
% }
+ % if ($CanRespond) {
+ <option value="response"><&|/l&>Reply to requestors</&></option>
+ % }
</select>
% $m->callback( %ARGS, CallbackName => 'AfterUpdateType' );
</div>
***************
*** 113,119 ****
<div class="form-row input-row">
<div class="label col-3"><&|/l&>Message</&>:</div>
! <div class="value col-9 messagebox-container action-<% $ARGS{UpdateType} || ($CanRespond ? 'response' : 'comment') %>">
% $m->callback( %ARGS, CallbackName => 'BeforeMessageBox' );
% if (defined $ARGS{UpdateContent} && length($ARGS{UpdateContent})) {
<& /Elements/MessageBox, Name=>"UpdateContent", Default=>$ARGS{UpdateContent}, IncludeSignature => 0 &>
--- 113,119 ----
<div class="form-row input-row">
<div class="label col-3"><&|/l&>Message</&>:</div>
! <div class="value col-9 messagebox-container action-<% $ARGS{UpdateType} || ($CanComment ? 'private' : 'response') %>">
% $m->callback( %ARGS, CallbackName => 'BeforeMessageBox' );
% if (defined $ARGS{UpdateContent} && length($ARGS{UpdateContent})) {
<& /Elements/MessageBox, Name=>"UpdateContent", Default=>$ARGS{UpdateContent}, IncludeSignature => 0 &>
An alternative may be to change the link associated with the Jumbo menu item so that it appends a &UpdateType=response
. This makes the comment box a reply, but doesn’t change the update type selection box, which doesn’t actually seem to look at the value of $ARGS{UpdateType}
- maybe it should? I also wonder what happens if the Jumbo user doesn’t have either comment or reply rights, but that’s going to be an unlikely situation.