Fix bug in material creation.
The error only happened the first time the application is launched. In the next executions the UnitType would already be in the database so it's not transient. Calling dontPoseAsTransientAnymore so this doesn't happen. FEA: ItEr60S04ValidacionEProbasFuncionaisItEr59S04
This commit is contained in:
parent
2b537df5a1
commit
95c0461dff
1 changed files with 3 additions and 0 deletions
|
|
@ -65,6 +65,9 @@ public class UnitTypeBootstrap implements IDataBootstrap {
|
|||
}
|
||||
|
||||
public static UnitType getDefaultUnitType() {
|
||||
if (defaultUnitType.isNewObject()) {
|
||||
defaultUnitType.dontPoseAsTransientObjectAnymore();
|
||||
}
|
||||
return defaultUnitType;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue