Fix
bug 462838 - Using the 'Status' column in unifinder to sort events/tasks leads to an exception. r=berend
--- 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;
}
},