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 {
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,
iConfigService.setFromList(AG_TERMINTYPEN, ret);
return ret;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment