Commit ec92718b authored by Roberto Loayza's avatar Roberto Loayza

CalendarService

parent 02259298
......@@ -178,12 +178,11 @@ public class CalendarService extends XDFService<Calendar, CalendarBean, String>
calendarExceptionRepository.delete(calendarExceptionOptional.get());
continue;
}
exceptionIds.add(calendarExceptionBean.getId());
// modificar
if (!calendarExceptionOptional.get().getFrequencyType().equals(calendarExceptionBean.getFrequencyType())) {
calendarExceptionRepository.delete(calendarExceptionOptional.get());
} else {
exceptionIds.add(calendarExceptionBean.getId());
calendarExceptionBean.setCalendar(bean);
calendarException = calendarExceptionService.toModel(calendarExceptionOptional.get(), calendarExceptionBean);
calendarExceptionRepository.save(calendarException);
......
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