[Rt-commit] rt branch, 4.4/select-new-ticket-in-queue-option-in-show-links, created. rt-4.4.2-239-g3625148e9

? sunnavy sunnavy at bestpractical.com
Fri May 25 10:00:55 EDT 2018


The branch, 4.4/select-new-ticket-in-queue-option-in-show-links has been created
        at  3625148e9d0b9f39292c0fc2724a63226391eafc (commit)

- Log -----------------------------------------------------------------
commit 3625148e9d0b9f39292c0fc2724a63226391eafc
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Fri May 25 21:51:11 2018 +0800

    Option SelectNewTicketQueue to render related elements in ShowLinks or not
    
    It's also useful when people want to include ShowLinks in a form, since
    nested form is not allowed and could break HTML badly.

diff --git a/share/html/Elements/ShowLinks b/share/html/Elements/ShowLinks
index 59ff6b22f..cf4e5bc6e 100644
--- a/share/html/Elements/ShowLinks
+++ b/share/html/Elements/ShowLinks
@@ -66,7 +66,7 @@
 
 </table>
 
-% if ($Object->isa('RT::Ticket')) {
+% if ($Object->isa('RT::Ticket') && $SelectNewTicketQueue) {
   <form action="<% RT->Config->Get('WebPath') ."/Helpers/SpawnLinkedTicket" %>" name="SpawnLinkedTicket">
     <input type="hidden" name="CloneTicket" value="<% $Object->id %>">
     <input type="submit" value="<&|/l&>Create</&>" name="SpawnLinkedTicket">
@@ -124,4 +124,5 @@ if (    $Object->isa("RT::Ticket")
 </%INIT>
 <%ARGS>
 $Object
+$SelectNewTicketQueue => 1
 </%ARGS>

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


More information about the rt-commit mailing list