[rt-devel] Small bug in Update.html

Matthew D. Stock stock at cse.Buffalo.EDU
Fri Oct 5 09:22:36 EDT 2001

If you use the web interface to comment or reply to a ticket, the subject
of the message that's sent is empty.  I think this is simply due to the
fact that there isn't any default set for the subject line field.  I've
attached a patch to Update.html that seems to do the right thing.  Jesse, is
this a bug or a feature?

--- /usr/local/rt2/WebRT/html/Ticket/Update.html	Thu Oct  4 05:31:48 2001
+++ Update.html	Fri Oct  5 07:53:48 2001
@@ -53,7 +53,7 @@
 <& /Elements/SelectOwner, Name=>"Owner", Default => $Ticket->OwnerObj->Id(), Queue => $Ticket->QueueObj &>
 <input size=4 name="UpdateTimeWorked"> minutes<BR>
-Subject: <input name="UpdateSubject" size=60 value=""> <br>
+Subject: <input name="UpdateSubject" size=60 value="<%$Ticket->Subject%>"> <br>
 Attach: <input name="UpdateAttachment" type="file"> <br>
 <& /Elements/MessageBox, Name=>"UpdateContent", QuoteTransaction=>$ARGS{QuoteTransaction} &>
 		<INPUT TYPE=HIDDEN NAME=id VALUE="<%$Ticket->Id%>"><br>

More information about the Rt-devel mailing list