Bug 895085 - Suppress the printing of unsupported sort key: 17. r=Standard8
authorISHIKAWA, Chiaki <ishikawa@yk.rim.or.jp>
Thu, 07 Nov 2013 09:08:12 -0500
changeset 16873 e7fd81e33b3d1f8adbdbe8517ff73f3f0a36be2e
parent 16872 9e1457436952ffe3ad7fe2e2021a62a371bc2338
child 16874 31b2b8a22a7a2d0a8ba4ee060740426f71dbef46
push id1074
push userbugzilla@standard8.plus.com
push dateMon, 03 Feb 2014 22:47:23 +0000
treeherdercomm-beta@6b791b5369ed [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersStandard8
bugs895085
Bug 895085 - Suppress the printing of unsupported sort key: 17. r=Standard8
mail/base/content/commandglue.js
--- a/mail/base/content/commandglue.js
+++ b/mail/base/content/commandglue.js
@@ -188,16 +188,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";