From 9f8f35ac57c9da0e0e3f84a8fa1997c683c2e5a8 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 23 Sep 2014 09:27:59 +0000 Subject: [PATCH] - Fix bug loading new data into gantt - Setup for Stylite gantt features --- etemplate/js/et2_widget_gantt.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/etemplate/js/et2_widget_gantt.js b/etemplate/js/et2_widget_gantt.js index aae4bd5c59..9413ce7093 100644 --- a/etemplate/js/et2_widget_gantt.js +++ b/etemplate/js/et2_widget_gantt.js @@ -275,6 +275,9 @@ var et2_gantt = et2_valueWidget.extend([et2_IResizeable,et2_IInput], // Clear previous value this.gantt.clearAll(); + + // Clear the end date, or previous end date may break time scale + this.gantt.config.end_date = null; if(value.duration_unit) {