Chrysostomos for scheduler
[unfold.git] / plugins / scheduler2 / static / js / scheduler-helpers.js
index c55c635..383cf1c 100755 (executable)
@@ -148,7 +148,7 @@ function _schedulerSetStatusSlot(slotId, rowIndex, resourceIndex, classText) {
     for (var s = 0; s < maxg; s++) {\r
         if (tmpVS.groupIndex != s) {\r
             SchedulerDataViewData[rowIndex].leases[startSlotId].status = classText;\r
-            SchedulerData[rowIndex].leases[startSlotId].status = classText;\r
+            SchedulerData[resourceIndex].leases[startSlotId].status = classText;\r
         }\r
         startSlotId++;\r
     }\r