incubator-bloodhound-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Bloodhound" <bloodhound-...@incubator.apache.org>
Subject [Apache Bloodhound] #236: Missing ticket keywords regression
Date Tue, 16 Oct 2012 12:44:02 GMT
#236: Missing ticket keywords regression
-----------------------+-----------------------
 Reporter:  gjm        |      Owner:  nobody
     Type:  defect     |     Status:  new
 Priority:  major      |  Milestone:  Release 3
Component:  dashboard  |    Version:
 Keywords:             |
-----------------------+-----------------------
 I note that #206 resulted in the absence of the keywords display. I
 believe that the following would fix the issue as the keywords field was
 removed from the {{{fields}}} variable:

 {{{
 #!diff
 Index: bhtheme/templates/bh_ticket_box.html
 ===================================================================
 --- bhtheme/templates/bh_ticket_box.html        (revision 1398220)
 +++ bhtheme/templates/bh_ticket_box.html        (working copy)
 @@ -61,10 +61,10 @@
      </div>
    </py:def>

 -  <py:with vars="fields = [f for f in fields if not f.skip and f.name not
 in ('type', 'owner', 'keywords')];
 -      small_fields = [f for f in fields if f.type not in ('text',
 'textarea') and f.name != 'cc'];
 -      text_fields = [f for f in fields if f.type == 'text' or f.name ==
 'cc'];
 -      area_fields = [f for f in fields if f.type == 'textarea'];
 +  <py:with vars="basefields = [f for f in fields if not f.skip and f.name
 not in ('type', 'owner', 'keywords')];
 +      small_fields = [f for f in basefields if f.type not in ('text',
 'textarea') and f.name != 'cc'];
 +      text_fields = [f for f in basefields if f.type == 'text' or f.name
 == 'cc'];
 +      area_fields = [f for f in basefields if f.type == 'textarea'];
        _colcount = colcount or 6">
      <div class="properties" style="margin: 1.2em 0px">
        <py:with vars="_fields, csscls, count, fontsize, is_inline =
 }}}

 Alternatively we could just store the value of the keywords field before
 it is removed from the fields.

-- 
Ticket URL: <https://issues.apache.org/bloodhound/ticket/236>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound (incubating) issue tracker

Mime
View raw message