ItEr40S05ValidacionEProbasFuncionaisItEr39S05: [Bug #199] Creating calendar when saving if it is null.

This commit is contained in:
Manuel Rego Casasnovas 2009-12-23 18:45:22 +01:00
parent 42a36d0631
commit 01d99f07aa

View file

@ -146,6 +146,9 @@ public class WorkerCRUDController extends GenericForwardComposer implements
if (workerModel.getWorker().isVirtual()) {
workerModel.setCapacity(getVirtualWorkerCapacity());
}
if (workerModel.getCalendar() == null) {
createCalendar();
}
workerModel.save();
goToList();
Util.reloadBindings(listWindow);