Add support for the target milestone column in e-mail.
authorJames Socol <james@mozilla.com>
Mon, 03 Jan 2011 08:44:42 -0800
changeset 61 3229ed7a99c2
parent 60 4bbe450d7dc5
child 62 2f3bb0154d6e
push id29
push usersdwilsh@shawnwilsher.com
push dateMon, 03 Jan 2011 16:49:27 +0000
Add support for the target milestone column in e-mail.
content/overlay.js
content/overlay.xul
--- a/content/overlay.js
+++ b/content/overlay.js
@@ -70,16 +70,17 @@ var BugzillaHelper = {
 
     const NEEDED_HEADERS = [
       "x-bugzilla-url",
       "x-bugzilla-who",
       "x-bugzilla-component",
       "x-bugzilla-product",
       "x-bugzilla-assigned-to",
       "x-bugzilla-status",
+      "x-bugzilla-target-milestone",
     ];
     const HEADERS_PREF = "mailnews.customDBHeaders";
     // We also need to add the headers we want to mailnews.customDBHeaders
     // preference so that they are indexed and available to our column handler.
     let pb = Components.classes["@mozilla.org/preferences-service;1"].
              getService(Components.interfaces.nsIPrefBranch);
     let headers = pb.getCharPref(HEADERS_PREF).split(" ");
     let updated = false;
@@ -343,12 +344,14 @@ var BugzillaHelper = {
                              new ColHandler("x-bugzilla-component"));
     gDBView.addColumnHandler("colBugzillaAssignee",
                              new ColHandler("x-bugzilla-assigned-to",
                                             "shorten"));
     gDBView.addColumnHandler("colBugzillaAssigneeFull",
                              new ColHandler("x-bugzilla-assigned-to"));
     gDBView.addColumnHandler("colBugzillaStatus",
                              new ColHandler("x-bugzilla-status", "adjustcase"));
+    gDBView.addColumnHandler("colBugzillaTargetMilestone",
+                             new ColHandler("x-bugzilla-target-milestone", "adjustcase"));
   },
 };
 
 window.addEventListener("load", BugzillaHelper.initialize, false);
--- a/content/overlay.xul
+++ b/content/overlay.xul
@@ -87,14 +87,21 @@
                flex="2"
                label="Assignee (Full)"
                tooltiptext="The bug's assignee."/>
       <splitter class="tree-splitter" />
       <treecol id="colBugzillaStatus"
                persist="hidden ordinal width"
                currentView="unthreaded"
                flex="2"
-               label="Status"
+               label="Bug Status"
                tooltiptext="The bug's status."/>
+      <splitter class="tree-splitter" />
+      <treecol id="colBugzillaTargetMilestone"
+               persist="hidden ordinal width"
+               currentView="unthreaded"
+               flex="2"
+               label="Target Milestone"
+               tooltiptext="The bug's target milestone."/>
     </treecols>
   </tree>
 
 </overlay>