Fix bug 462838 - Using the 'Status' column in unifinder to sort events/tasks leads to an exception. r=berend
authorPhilipp Kewisch <mozilla@kewis.ch>
Tue, 27 Jan 2009 22:18:11 +0100
changeset 1775 49d1f161ef3fed9c67032268a7eff0006aceedbc
parent 1774 fed51931782cf0cac0c32e8791ef46da578ed1e1
child 1776 95ba043cde322fd940771a6cf346ed72f1acc516
push idunknown
push userunknown
push dateunknown
reviewersberend
bugs462838
Fix bug 462838 - Using the 'Status' column in unifinder to sort events/tasks leads to an exception. r=berend
calendar/base/modules/calUtils.jsm
--- a/calendar/base/modules/calUtils.jsm
+++ b/calendar/base/modules/calUtils.jsm
@@ -225,20 +225,21 @@ let cal = {
 
         case "categories":
           return aItem.getCategories({}).join(", ");
 
         case "location":
           return aItem.getProperty("LOCATION") || "";
 
         case "status":
-          if (isToDo(aItem))
+          if (cal.isToDo(aItem)) {
             return ["NEEDS-ACTION", "IN-PROCESS", "COMPLETED", "CANCELLED" ].indexOf(aItem.status);
-          else
+          } else {
             return ["TENTATIVE", "CONFIRMED", "CANCELLED"].indexOf(aItem.status);
+          }
         case "calendar":
           return aItem.calendar.name || "";
 
         default:
           return null;
       }
     },