[Rt-commit] rt branch, 4.0/no-ticket-interface-for-approvals, created. rt-4.0.4-118-g9e1b608
Ruslan Zakirov
ruz at bestpractical.com
Thu Dec 8 15:35:54 EST 2011
The branch, 4.0/no-ticket-interface-for-approvals has been created
at 9e1b6081c0d5189f33f2e2af182e5a6eb90cd0d3 (commit)
- Log -----------------------------------------------------------------
commit 9e1b6081c0d5189f33f2e2af182e5a6eb90cd0d3
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date: Fri Dec 9 00:35:11 2011 +0400
new option NoTicketInterfaceForApprovals
diff --git a/etc/RT_Config.pm.in b/etc/RT_Config.pm.in
index 1cf4f73..c4e7c85 100755
--- a/etc/RT_Config.pm.in
+++ b/etc/RT_Config.pm.in
@@ -1683,11 +1683,21 @@ Set($RedistributeAutoGeneratedMessages, "privileged");
Should rejection notes from approvals be sent to the requestors?
+=cut
+
+Set($ApprovalRejectionNotes, 1);
+
+=item C<$NoTicketInterfaceForApprovals>
+
+By default it's possible to view approvals like a regular tickets
+while they have its own UI. Set this option to 1 to redirect
+users to approvals specific UI.
+
=back
=cut
-Set($ApprovalRejectionNotes, 1);
+Set($NoTicketInterfaceForApprovals, 0);
=head1 Extra security
diff --git a/share/html/Ticket/Display.html b/share/html/Ticket/Display.html
index 64f9530..07d751c 100755
--- a/share/html/Ticket/Display.html
+++ b/share/html/Ticket/Display.html
@@ -199,7 +199,10 @@ $m->callback(
# This code does automatic redirection if any updates happen.
MaybeRedirectForResults(
Actions => \@Actions,
- Path => "/Ticket/Display.html",
+ $TicketObj->Type eq 'approval' && RT->Config->Get('NoTicketInterfaceForApprovals')
+ ? (Path => "/Approvals/Display.html", Force => 1)
+ : (Path => "/Ticket/Display.html")
+ ,
Anchor => $ARGS{'Anchor'},
Arguments => { id => $TicketObj->id },
);
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list