the parent from which a new work week derives, must be specified.

FEA: ItEr75S05CalendarAdminInterfaceItEr74S06
This commit is contained in:
Susana Montes Pedreira 2011-06-21 09:52:31 +02:00
parent bf4ac9a147
commit 7a1a2e59d4
2 changed files with 4 additions and 0 deletions

View file

@ -949,6 +949,9 @@ public abstract class BaseCalendarEditionController extends
if (isDerived()) {
Combobox parentCalendars = (Combobox) createNewVersionWindow
.getFellow("parentCalendars");
if (parentCalendars.getSelectedItem() == null) {
return;
}
selected = (BaseCalendar) parentCalendars.getSelectedItem()
.getValue();
}

View file

@ -28,6 +28,7 @@
<label value="${i18n:_('Type')}:"/>
<label value="@{calendarController.editionController.calendarType}"/>
<combobox id="parentCalendars"
constraint="no empty:${i18n:_('cannot be null or empty')}"
model="@{calendarController.editionController.parentCalendars}">
<comboitem self="@{each='baseCalnedar'}"
value="@{baseCalnedar}" label="@{baseCalnedar.name}" />