Bug #1416: Reload resources text in parent tasks too
Removed call to reload resources text from progress consolidation window and advanced allocation window as it was not needed. FEA: ItEr76S04BugFixing
This commit is contained in:
parent
122a7fb92b
commit
7d9f997f3c
4 changed files with 15 additions and 7 deletions
|
|
@ -41,6 +41,7 @@ import org.zkoss.ganttz.data.GanttDiagramGraph.IDependenciesEnforcerHookFactory;
|
|||
import org.zkoss.ganttz.data.GanttDiagramGraph.INotificationAfterDependenciesEnforcement;
|
||||
import org.zkoss.ganttz.data.constraint.Constraint;
|
||||
import org.zkoss.ganttz.data.constraint.Constraint.IConstraintViolationListener;
|
||||
import org.zkoss.ganttz.extensions.IContextWithPlannerTask;
|
||||
import org.zkoss.ganttz.util.ConstraintViolationNotificator;
|
||||
import org.zkoss.ganttz.util.WeakReferencedListeners.Mode;
|
||||
|
||||
|
|
@ -471,6 +472,16 @@ public abstract class Task implements ITaskFundamentalProperties {
|
|||
}
|
||||
}
|
||||
|
||||
public static void reloadResourcesText(IContextWithPlannerTask<?> context) {
|
||||
Task task = context.getTask();
|
||||
task.reloadResourcesText();
|
||||
List<? extends TaskContainer> parents = context.getMapper().getParents(
|
||||
task);
|
||||
for (TaskContainer each : parents) {
|
||||
each.reloadResourcesText();
|
||||
}
|
||||
}
|
||||
|
||||
public boolean isSubcontracted() {
|
||||
return fundamentalProperties.isSubcontracted();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* Copyright (C) 2009-2010 Fundación para o Fomento da Calidade Industrial e
|
||||
* Desenvolvemento Tecnolóxico de Galicia
|
||||
* Copyright (C) 2010-2011 Igalia, S.L.
|
||||
* Copyright (C) 2010-2012 Igalia, S.L.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published by
|
||||
|
|
@ -57,7 +57,6 @@ import org.springframework.beans.factory.config.BeanDefinition;
|
|||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.zkoss.ganttz.data.GanttDate;
|
||||
import org.zkoss.ganttz.extensions.IContextWithPlannerTask;
|
||||
|
||||
/**
|
||||
|
|
@ -152,7 +151,6 @@ public class AdvanceConsolidationModel implements IAdvanceConsolidationModel {
|
|||
updateConsolidationInAdvanceIfIsNeeded();
|
||||
|
||||
ganttTask.enforceDependenciesDueToPositionPotentiallyModified();
|
||||
ganttTask.reloadResourcesText();
|
||||
context.reloadCharts();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* This file is part of LibrePlan
|
||||
*
|
||||
* Copyright (C) 2011 Igalia, S.L.
|
||||
* Copyright (C) 2011-2012 Igalia, S.L.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published by
|
||||
|
|
@ -158,7 +158,6 @@ public class AdvancedAllocationTaskController extends GenericForwardComposer {
|
|||
|
||||
private void askForReloads() {
|
||||
if (context != null) {
|
||||
context.getTask().reloadResourcesText();
|
||||
context.reloadCharts();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* Copyright (C) 2009-2010 Fundación para o Fomento da Calidade Industrial e
|
||||
* Desenvolvemento Tecnolóxico de Galicia
|
||||
* Copyright (C) 2010-2011 Igalia, S.L.
|
||||
* Copyright (C) 2010-2012 Igalia, S.L.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published by
|
||||
|
|
@ -310,7 +310,7 @@ public class EditTaskController extends GenericForwardComposer {
|
|||
|
||||
private void askForReloads() {
|
||||
if (context != null) {
|
||||
context.getTask().reloadResourcesText();
|
||||
org.zkoss.ganttz.data.Task.reloadResourcesText(context);
|
||||
context.reloadCharts();
|
||||
if (context.getRelativeTo() instanceof TaskComponent) {
|
||||
((TaskComponent) context.getRelativeTo()).updateProperties();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue