Commit b31a3138 authored by Thomas Huster's avatar Thomas Huster

[17232] initialize default appointment types if not configured

parent 6e6cf1a0
Pipeline #12208 passed with stages
in 4 minutes and 48 seconds
......@@ -276,7 +276,13 @@ public class AppointmentService implements IAppointmentService {
@Override
public List<String> getTypes(){
return new ArrayList<String>(
List<String> ret = new ArrayList<String>(
iConfigService.getAsList(AG_TERMINTYPEN, Collections.emptyList()));
if (ret.isEmpty() || ret.size() < 3) {
ret = Arrays.asList(Messages.Appointment_Range_Free, Messages.Appointment_Range_Locked,
Messages.Appointment_Normal_Appointment);
iConfigService.setFromList(AG_TERMINTYPEN, ret);
}
return ret;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment