Edgewall Software

Ticket #877: patch-reporttitle-r1011.diff

File patch-reporttitle-r1011.diff, 1.7 KB (added by pkou <pkou at ua.fm>, 8 years ago)

Patch for the defect

  • trac/Report.py

     
    196196 
    197197        if copy: 
    198198            title += ' copy' 
    199         self.req.hdf.setValue('title', 'Create New Report') 
     199 
     200        if action == 'commit': 
     201            self.req.hdf.setValue('title', 'Edit {%s} %s (report)' % (id, row['title'])) 
     202        else: 
     203            self.req.hdf.setValue('title', 'Create New Report') 
    200204        self.req.hdf.setValue('report.mode', 'editor') 
    201205        self.req.hdf.setValue('report.title', title) 
    202206        self.req.hdf.setValue('report.id', str(id)) 
  • templates/report.cs

     
    175175 
    176176 <?cs elif report.mode == "delete" ?> 
    177177 
    178   <h1 id="report-hdr">Delete Report</h1>  
     178  <h1 id="report-hdr">Delete Report {<?cs var:report.id ?>}: <?cs var:report.title ?></h1>  
    179179  <form action="<?cs var:cgi_location ?>" method="post"> 
    180180   <input type="hidden" name="mode" value="report" /> 
    181181  <input type="hidden" name="id" value="<?cs var:report.id ?>" />