Fix NonUniqueObjectException on the project gantt when loading the same criteria of the user filter setting
Due to the relationship between user and criteria not being lazy, the reattach method was bringing an already loaded element. FEA: ItEr77S04BugFixing
This commit is contained in:
parent
95c044afee
commit
82f2591ab0
1 changed files with 3 additions and 1 deletions
|
|
@ -909,7 +909,9 @@ public class PlanningStateCreator {
|
||||||
|
|
||||||
private void reattachCriterions(Set<Criterion> criterions) {
|
private void reattachCriterions(Set<Criterion> criterions) {
|
||||||
for (Criterion each : criterions) {
|
for (Criterion each : criterions) {
|
||||||
criterionDAO.reattachUnmodifiedEntity(each);
|
if (!Hibernate.isInitialized(each)) {
|
||||||
|
criterionDAO.reattachUnmodifiedEntity(each);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue