Skip to content

Commit

Permalink
SAK-44002 fix DateManager signup date manipulation (sakaiproject#9068)
Browse files Browse the repository at this point in the history
  • Loading branch information
ottenhoff authored Mar 3, 2021
1 parent 9ed2d03 commit ceabf85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ public void updateSignupMeetings(DateManagerValidation signupValidate) throws Ex
SignupMeeting meeting = (SignupMeeting) update.object;
meeting.setStartTime(Date.from(update.openDate));
meeting.setEndTime(Date.from(update.dueDate));
signupService.updateSignupMeeting(meeting, false);
signupService.updateSignupMeeting(meeting, true);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ public String showIndex(@RequestParam(required=false) String code, Model model,
}

} catch (Exception e) {
log.error("Error updating dates");
jsonResponse = String.format("{\"status\": \"ERROR\", \"error\": \"%s\"}", dateManagerService.getMessage("error.uncaught"));
log.error("Error updating dates", e);
jsonResponse = String.format("{\"status\": \"ERROR\", \"error\": \"%s\"}", dateManagerService.getMessage("error.uncaught") + ": " + e.getMessage());
}
return jsonResponse;
}
Expand Down

0 comments on commit ceabf85

Please sign in to comment.