[Bug #1250] Fix issue removing TaskSource of unscheduled element
The problem is that if TaskSource was not stored in database, it was not removed from OrderElement. FEA: ItEr75S04BugFixing
This commit is contained in:
parent
91b2fcbcd7
commit
5411f35444
1 changed files with 7 additions and 0 deletions
|
|
@ -395,6 +395,13 @@ public abstract class OrderElement extends IntegrationEntity implements
|
|||
removeChildrenTaskSource(result);
|
||||
if (getOnDBTaskSource() != null) {
|
||||
result.add(taskSourceRemoval());
|
||||
} else {
|
||||
TaskSource taskSource = getTaskSource();
|
||||
if (taskSource != null) {
|
||||
taskSource.getTask().detachFromDependencies();
|
||||
taskSource.getTask().detachFromParent();
|
||||
getCurrentSchedulingData().taskSourceRemovalRequested();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue