Pull request #144: RED-2661 - Removing a dossier member or deleting a user must not change the status of a file
Merge in RED/persistence-service from RED-2661_8 to master * commit '238de2bfc01b7a359887fbe3eca3320a1495bb79': RED-2661 - Removing a dossier member or deleting a user must not change the status of a file
This commit is contained in:
commit
bd2577da4e
@ -204,11 +204,11 @@ public class FileStatusService {
|
||||
FileEntity fileStatus = fileStatusPersistenceService.getStatus(fileId);
|
||||
String lastReviewer = fileStatus.getLastReviewer();
|
||||
String lastApprover = fileStatus.getLastApprover();
|
||||
if(StringUtils.isNotEmpty(assignee) && WorkflowStatus.UNDER_REVIEW.equals(fileStatus.getWorkflowStatus())) {
|
||||
lastReviewer = assignee;
|
||||
if(WorkflowStatus.UNDER_REVIEW.equals(fileStatus.getWorkflowStatus())) {
|
||||
lastReviewer = StringUtils.isNotEmpty(assignee)? assignee: fileStatus.getAssignee();
|
||||
}
|
||||
if(StringUtils.isNotEmpty(assignee) && WorkflowStatus.UNDER_APPROVAL.equals(fileStatus.getWorkflowStatus())) {
|
||||
lastApprover = assignee;
|
||||
if(WorkflowStatus.UNDER_APPROVAL.equals(fileStatus.getWorkflowStatus())) {
|
||||
lastApprover = StringUtils.isNotEmpty(assignee)? assignee: fileStatus.getAssignee();
|
||||
}
|
||||
|
||||
fileStatusPersistenceService.setAssignee(fileId, assignee, lastReviewer, lastApprover);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user