Bug #1560: Fire property change for task dates after closing allocation pop-up

FEA: ItEr77S04BugFixing
This commit is contained in:
Manuel Rego Casasnovas 2012-11-13 13:44:05 +01:00
parent 596c5f1747
commit 1efbca11e2
2 changed files with 11 additions and 0 deletions

View file

@ -548,4 +548,11 @@ public abstract class Task implements ITaskFundamentalProperties {
getBeginDate());
}
public void firePropertyChangeForTaskDates() {
fundamentalPropertiesListeners.firePropertyChange("beginDate", null,
getBeginDate());
fundamentalPropertiesListeners.firePropertyChange("endDate", null,
getEndDate());
}
}

View file

@ -316,6 +316,10 @@ public class EditTaskController extends GenericForwardComposer {
if (context.getRelativeTo() instanceof TaskComponent) {
((TaskComponent) context.getRelativeTo()).updateProperties();
((TaskComponent) context.getRelativeTo()).invalidate();
org.zkoss.ganttz.data.Task task = context.getMapper()
.findAssociatedBean(taskElement);
task.firePropertyChangeForTaskDates();
}
}
}