Просмотр исходного кода

Merge remote-tracking branch 'origin/test' into dev

anderx лет назад: 7
Родитель
Сommit
3d026058ab
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/main/java/com/goafanti/common/controller/PreviewController.java

+ 1 - 1
src/main/java/com/goafanti/common/controller/PreviewController.java

@@ -280,7 +280,7 @@ public class PreviewController extends BaseApiController {
 	}
 	}
 
 
 	private void handleTechProjectPreview(HttpServletResponse response, TechProject tp, AttachmentType attachmentType) {
 	private void handleTechProjectPreview(HttpServletResponse response, TechProject tp, AttachmentType attachmentType) {
-		if (attachmentType == AttachmentType.TECH_PROJECT) {
+		if (attachmentType == AttachmentType.TECH_PROJECT||attachmentType == AttachmentType.ORGANIZATION_APPLICATION) {
 			downloadFile(response, tp.getApprovalDownloadFileName(), tp.getApprovalUrl());
 			downloadFile(response, tp.getApprovalDownloadFileName(), tp.getApprovalUrl());
 		}
 		}
 	}
 	}