Edgewall Software

Ticket #5493: clone_summary_field.patch

File clone_summary_field.patch, 999 bytes (added by jkankiewicz, 5 years ago)

A patch to make the ticket's clone receive the original's summary.

  • trac/ticket/templates/ticket.html

     
    189189                  <input type="submit" name="clone" value="Clone" title="Create a copy of this ticket"  /> 
    190190                  <py:for each="f in fields"> 
    191191                    <py:choose test="f.name"> 
    192                       <input py:when="'summary'" type="hidden" name="field_summary" value="$ticket.description (cloned)" /> 
     192                      <input py:when="'summary'" type="hidden" name="field_summary" value="$ticket.summary (cloned)" /> 
    193193                      <input py:when="'description'" type="hidden" name="field_description" value="Cloned from #$ticket.id: ${'\n----\n' + ticket.description}" /> 
    194194                      <input py:otherwise="" type="hidden" name="field_${f.name}" value="${ticket[f.name]}" /> 
    195195                    </py:choose>