Просмотр исходного кода

hack to get now indicator to work again

Adam Shaw 8 лет назад
Родитель
Сommit
90b2843138
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/common/TimeGrid.js

+ 1 - 1
src/common/TimeGrid.js

@@ -461,7 +461,7 @@ var TimeGrid = FC.TimeGrid = Grid.extend(DayTableMixin, {
 		//  more than once because of columns with the same date (resources columns for example)
 		//  more than once because of columns with the same date (resources columns for example)
 		var segs = this.componentFootprintToSegs(
 		var segs = this.componentFootprintToSegs(
 			new ComponentFootprint(
 			new ComponentFootprint(
-				new UnzonedRange(date, date),
+				new UnzonedRange(date, date.valueOf() + 1), // protect against null range
 				false // all-day
 				false // all-day
 			)
 			)
 		);
 		);