Fix bug with displaying custom headers in virtual folders.
authorShawn Wilsher <sdwilsh@shawnwilsher.com>
Thu, 29 Apr 2010 15:49:34 -0700
changeset 55 07f5558bec92
parent 54 cb164ae495dc
child 56 cdb11718e177
push id27
push usersdwilsh@shawnwilsher.com
push dateThu, 29 Apr 2010 22:53:25 +0000
Fix bug with displaying custom headers in virtual folders.
content/overlay.js
--- a/content/overlay.js
+++ b/content/overlay.js
@@ -310,17 +310,17 @@ var BugzillaHelper = {
         else if (this._special == "adjustcase" && text.length) {
           text = text[0].toUpperCase() + text.substr(1).toLowerCase();
         }
         return text;
       },
 
       getCellText: function(row, col) {
         let key = gDBView.getKeyAt(row);
-        let hdr = gDBView.db.GetMsgHdrForKey(key);
+        let hdr = gDBView.getFolderForViewIndex(row).GetMessageHeader(key);
         let text = hdr.getStringProperty(this._header);
         return this._fixupString(text);
       },
 
       getSortStringForRow: function(hdr) {
         let text = hdr.getStringProperty(this._header);
         return this._fixupString(text);
       },