Bug 935958 Suppressing the printing of unsupported sort key: 17 r=IanN sr=IanN a=IanN a=comm-aurora a=comm-beta
authorISHIKAWA, Chiaki <ishikawa@yk.rim.or.jp>
Wed, 05 Feb 2014 17:41:51 +0800
changeset 17011 632d073bfcc576bfa85a214268e10c27eb3bddd3
parent 17010 6b791b5369ed0ab2d1dc71c02f2e0fe3684faf45
child 17012 2fd0cb220492fc37f7fe253b12cd9cfc3b3839cd
push id1075
push userphilip.chee@gmail.com
push dateWed, 05 Feb 2014 09:59:12 +0000
treeherdercomm-beta@632d073bfcc5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersIanN, IanN, IanN, comm-aurora, comm-beta
bugs935958, 895085
Bug 935958 Suppressing the printing of unsupported sort key: 17 r=IanN sr=IanN a=IanN a=comm-aurora a=comm-beta (originally Bug 895085) Split for handling for Suite-part. a=CLOSED TREE
suite/mailnews/commandglue.js
--- a/suite/mailnews/commandglue.js
+++ b/suite/mailnews/commandglue.js
@@ -526,16 +526,20 @@ function ConvertSortTypeToColumnID(sortK
 {
   var columnID;
 
   // Hack to turn this into an integer, if it was a string.
   // It would be a string if it came from localStore.rdf
   sortKey = sortKey - 0;
 
   switch (sortKey) {
+    // In the case of None, we default to the date column
+    // This appears to be the case in such instances as
+    // Global search, so don't complain about it.
+    case nsMsgViewSortType.byNone:
     case nsMsgViewSortType.byDate:
       columnID = "dateCol";
       break;
     case nsMsgViewSortType.byReceived:
       columnID = "receivedCol";
       break;
     case nsMsgViewSortType.byAuthor:
       columnID = "senderCol";