Skip to content

Commit

Permalink
Merge pull request #54 from consiglionazionaledellericerche/53-lalleg…
Browse files Browse the repository at this point in the history
…ato-delle-richieste-di-congedo-per-il-padre-non-viene-scaricato

Risolto bug nello scaricamento dell'allegato di un congedo parentale per
  • Loading branch information
criluc authored Sep 1, 2023
2 parents 27def6c + eba3bfe commit 473c470
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Mostrato un messaggio di avvertimento in caso di segnalazione non inviata correttamente
- Corretta gestione caso JWT necessario ma non presente.
- Inviata la sessione play al epas-helpdesk-service (se configurato)
- Risolto bug nello scaricamento dell'allegato per richieste congedo parentale per il padre


## [2.7.0] - 2023-08-10
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/InformationRequests.java
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ public static void downloadAttachment(Long informationRequestId) {
flash.error("Non esiste la richiesta associata a questo file! Verificare!");
redirect("InformationRequests.list");
}
if (parentalLeaveRequest.get().getBornCertificate() != null) {
if (parentalLeaveRequest.get().getBornCertificate().exists()) {
response.setContentTypeIfNotSet(parentalLeaveRequest.get().getBornCertificate().type());
fileName = String.format("certificatoNascitaFiglioDi-%s",
parentalLeaveRequest.get().getPerson().getFullname().replace(" ", "-"));
Expand Down

0 comments on commit 473c470

Please sign in to comment.