Skip to content

Commit

Permalink
[#205] Update preUpdate method
Browse files Browse the repository at this point in the history
  • Loading branch information
palagdan authored and blcham committed Nov 6, 2024
1 parent 55bac0c commit fadeaab
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ protected void prePersist(PatientRecord instance) {

@Override
protected void preUpdate(PatientRecord instance) {
if(instance.getPhase() != RecordPhase.rejected) {
instance.setRejectMessage(null);
}
instance.setLastModifiedBy(securityUtils.getCurrentUser());
instance.setLastModified(new Date());
recordDao.requireUniqueNonEmptyLocalName(instance);
Expand Down

0 comments on commit fadeaab

Please sign in to comment.