fixed bug with reset settings tasks & update tasktype id DB

This commit is contained in:
vfedosevich 2013-05-16 15:42:43 +03:00
parent 59b097b10b
commit 38c8ac1199
2 changed files with 8 additions and 4 deletions

View file

@ -224,11 +224,11 @@ namespace WebsitePanel.EnterpriseServer
}
// update last finish time
ScheduleInfo scheduleInfo = SchedulerController.GetSchedule(TopTask.ItemId);
if (scheduleInfo != null)
SchedulerJob schedule = SchedulerController.GetScheduleComplete(TopTask.ItemId);
if (schedule != null)
{
scheduleInfo.LastFinish = DateTime.Now;
SchedulerController.UpdateSchedule(scheduleInfo);
schedule.ScheduleInfo.LastFinish = DateTime.Now;
SchedulerController.UpdateSchedule(schedule.ScheduleInfo);
}
// remove task from the stack