|
|
@ -71,9 +71,6 @@ public class GccServiceDocumentsController { |
|
|
|
|
|
|
|
|
@GetMapping("/login") |
|
|
@GetMapping("/login") |
|
|
public String login(HttpSession session) { |
|
|
public String login(HttpSession session) { |
|
|
if (session.getAttribute("doc_usrName") != null) { |
|
|
|
|
|
return "redirect:/gccservicedocuments/view"; |
|
|
|
|
|
} |
|
|
|
|
|
return "gccservicedocuments/login"; |
|
|
return "gccservicedocuments/login"; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -320,7 +317,8 @@ public class GccServiceDocumentsController { |
|
|
fileWebUrl = "/gccservicedocuments/files/" + cleanCategory + "/" + savedFilename; |
|
|
fileWebUrl = "/gccservicedocuments/files/" + cleanCategory + "/" + savedFilename; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
boolean updated = documentService.updateDocument(id, title.trim(), mainCategory.trim(), subCategory.trim(), fileType.trim(), |
|
|
|
|
|
|
|
|
boolean updated = documentService.updateDocument(id, title.trim(), mainCategory.trim(), subCategory.trim(), |
|
|
|
|
|
fileType.trim(), |
|
|
fileWebUrl, originalFilename); |
|
|
fileWebUrl, originalFilename); |
|
|
|
|
|
|
|
|
if (updated) { |
|
|
if (updated) { |
|
|
|