Edgewall Software
Modify

Opened 9 years ago

Last modified 4 years ago

#9227 new defect

In the ticket change history list, comment div's are printed even with empty comments.

Reported by: eino.saarela.rossi@… Owned by:
Priority: high Milestone: next-major-releases
Component: web frontend Version: 0.11-stable
Severity: trivial Keywords: css xhtml patch
Cc: Branch:
Release Notes:
API Changes:

Description

The ticket change history list contain following div-tag on each change event even with empty comment.

<div class="comment searchable"> </div>

It is an issue when using different background color or border for the comment fields.

I've fixed this issue like this in the trac/ticket/templates/ticket.html file

76c76
<       <div py:if="'comment' in change" class="comment searchable" xml:space="preserve">
---
>       <div py:if="change.comment" class="comment searchable" xml:space="preserve">

Attachments (0)

Change History (2)

comment:1 by Christian Boos, 9 years ago

Milestone: next-major-0.1X
Priority: lowhigh
Severity: minortrivial

… or even change.get('comment').

comment:2 by figaro, 4 years ago

Keywords: patch added

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned. Next status will be 'new'.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.