From f3b5366c32416d5e516048ad1b8ab7a78ac0f54d Mon Sep 17 00:00:00 2001
From: Leonardo Vannucci <leonardo.vannucci@grupposistematica.it>
Date: Mon, 17 Sep 2018 16:13:18 +0200
Subject: [PATCH] fix
---
dg1cloud-core/src/main/java/it/digione/dg1cloud/controller/StartURPController.java | 3 +--
dg1cloud-core/src/main/resources/templates/startURP.html | 2 +-
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/dg1cloud-core/src/main/java/it/digione/dg1cloud/controller/StartURPController.java b/dg1cloud-core/src/main/java/it/digione/dg1cloud/controller/StartURPController.java
index 95a7b41..b9a13e3 100644
--- a/dg1cloud-core/src/main/java/it/digione/dg1cloud/controller/StartURPController.java
+++ b/dg1cloud-core/src/main/java/it/digione/dg1cloud/controller/StartURPController.java
@@ -59,8 +59,7 @@
BindingResult result) {
ModelAndView modelAndView;
- //if (result.hasErrors()){
- if (false) {
+ if (result.hasErrors()){
modelAndView = new ModelAndView("startURP");
modelAndView.addObject(result);
modelAndView.addObject("startURPForm", form);
diff --git a/dg1cloud-core/src/main/resources/templates/startURP.html b/dg1cloud-core/src/main/resources/templates/startURP.html
index 3a33e52..ad63972 100644
--- a/dg1cloud-core/src/main/resources/templates/startURP.html
+++ b/dg1cloud-core/src/main/resources/templates/startURP.html
@@ -25,7 +25,7 @@
method="post" role="form"
enctype="multipart/form-data" >
<div th:if="${message}" th:text="${message}" th:class="${'alert ' + alertClass}"></div>
- <div th:th:if="${appIdentifier}">
+ <div th:if="${appIdentifier}">
<div th:text="${'Protocollo ' + appIdentifier + ' del ' + appIdentifierDate}" th:class="${'alert alert-info'}"></div>
<div>
<p><a th:href="@{/startURP}" class="btn btn-link"><span th:text="${'Effettua una nuova richiesta'}"></span></a></p>
--
Gitblit v1.6.2