[rt-devel] [PATCH] Spawn Child Button

Darrin Thompson darrint at progeny.com
Fri Feb 13 17:59:46 EST 2004


* Add "spawn child" functionality.  And there was much rejoicing.

See attached.

--
Darrin




-------------- next part --------------
Index: share/html/Ticket/Create.html
===================================================================
--- share/html/Ticket/Create.html	(revision 14575)
+++ share/html/Ticket/Create.html	(revision 14576)
@@ -173,7 +173,7 @@
 <TABLE BORDER=0>
 <TR><TD ALIGN=RIGHT><&|/l&>Depends on</&></TD><TD><input size=10 name="new-DependsOn"<% $ARGS{'new-DependsOn'} && " VALUE=\"$ARGS{'new-DependsOn'}\""%>></TD></TR>
 <TR><TD ALIGN=RIGHT><&|/l&>Depended on by</&></TD><TD><input size=10 name="DependsOn-new"<% $ARGS{'DependsOn-new'} && " VALUE=\"$ARGS{'DependsOn-new'}\"" %>></TD></TR>
-<TR><TD ALIGN=RIGHT><&|/l&>Parents</&></TD><TD><input size=10 name="new-MemberOf"<% $ARGS{'new-MemberOf'} && " VALUE=\"$ARGS{'new-MemberOf'}\"" %>></TD></TR>
+<TR><TD ALIGN=RIGHT><&|/l&>Parents</&></TD><TD><input size=10 name="new-MemberOf" value="<%$ARGS{'new-MemberOf'}%>"></TD></TR>
 <TR><TD ALIGN=RIGHT><&|/l&>Children</&></TD><TD><input size=10 name="MemberOf-new" <% $ARGS{'MemberOf-new'} && " VALUE=\"$ARGS{'MemberOf-new'}\"" %>></TD></TR>
 <TR><TD ALIGN=RIGHT><&|/l&>Refers to</&></TD><TD><input size=10 name="new-RefersTo"<% $ARGS{'new-RefersTo'} && " VALUE=\"$ARGS{'new-MemberOf'}\"" %>></TD></TR>
 <TR><TD ALIGN=RIGHT><&|/l&>Referred to by</&></TD><TD><input size=10 name="RefersTo-new"<% $ARGS{'RefersTo-new'} && " VALUE=\"$ARGS{'RefersTo-new'}\"" %>></TD></TR>
@@ -252,4 +252,8 @@
 $MemberOf => undef
 $QuoteTransaction => undef
 $Queue => undef
+$spawn_child => undef
+$Priority => undef
+$DueDate => undef
+$ParentID => undef
 </%ARGS>
Index: share/html/Ticket/Display.html
===================================================================
--- share/html/Ticket/Display.html	(revision 14575)
+++ share/html/Ticket/Display.html	(revision 14576)
@@ -34,6 +34,17 @@
 
 
 <BR>
+<div style="text-align: right">
+<form action="Create.html" method="get">
+<input type="submit" value="Spawn child ticket">
+<input type="hidden" name="Queue" value="<%$Ticket->QueueObj->Name%>">
+<input type="hidden" name="InitialPriority" value="<%$Ticket->Priority%>">
+<input type="hidden" name="FinalPriority" value="<%$Ticket->FinalPriority%>">
+<input type="hidden" name="Due" value="<%$Ticket->DueObj->AsString%>">
+<input type="hidden" name="new-MemberOf" value="<%$Ticket->Id%>">
+<input type="hidden" name="Owner" value="<%$Ticket->Owner%>">
+</form>
+</div>
 <& /Ticket/Elements/ShowHistory , 
       Ticket => $Ticket, 
       Collapsed => $ARGS{'Collapsed'}, 


More information about the Rt-devel mailing list