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:
Óscar González Fernández 2010-09-09 14:07:06 +02:00
parent 2b537df5a1
commit 95c0461dff

View file

@ -65,6 +65,9 @@ public class UnitTypeBootstrap implements IDataBootstrap {
}
public static UnitType getDefaultUnitType() {
if (defaultUnitType.isNewObject()) {
defaultUnitType.dontPoseAsTransientObjectAnymore();
}
return defaultUnitType;
}
}