Edgewall Software

Ticket #3838: 3838-ticket-prop-delete-r7376.patch

File 3838-ticket-prop-delete-r7376.patch, 1.2 KB (added by Remy Blank <remy.blank@…>, 6 months ago)

Patch against 0.11-stable showing the removed content in ticket property changes

  • trac/ticket/templates/ticket.html

    diff --git a/trac/ticket/templates/ticket.html b/trac/ticket/templates/ticket.html
    a b  
    6464            <py:when test="not field.old and field.new"> 
    6565              set to <em>${field.new}</em> 
    6666            </py:when> 
    67             <py:otherwise>deleted</py:otherwise> 
     67            <py:otherwise> 
     68              <em>${field.old}</em> deleted 
     69            </py:otherwise> 
    6870          </py:choose> 
    6971        </li> 
    7072      </ul> 
  • trac/ticket/templates/ticket.rss

    diff --git a/trac/ticket/templates/ticket.rss b/trac/ticket/templates/ticket.rss
    a b  
    3232                set to &lt;em&gt;$value.new&lt;/em&gt; 
    3333              </py:when> 
    3434              <py:when test="value.new"> 
    35                 changed from &lt;em&gt;$value.old&lt;/em&gt; to &lt;em&gt;$value.new&lt;/em&gt;. 
     35                changed from &lt;em&gt;$value.old&lt;/em&gt; to &lt;em&gt;$value.new&lt;/em&gt; 
    3636              </py:when> 
    3737              <py:otherwise> 
    38                 deleted 
     38                &lt;em&gt;$value.old&lt;/em&gt; deleted 
    3939              </py:otherwise> 
    4040            </py:choose> 
    4141            &lt;/li&gt;