From 10054f1b5e521783a411151c2e7b5190ad28c3bc Mon Sep 17 00:00:00 2001 From: Gabriele Incoronato Date: Wed, 4 Dec 2024 16:18:52 +0100 Subject: [PATCH] Fix form cambio data fine lavori su advanced operation --- .../operation/util/AdvancedOperationUtil.java | 12 ++++++++++++ .../docroot/html/view.jsp | 6 ++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/util/AdvancedOperationUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/util/AdvancedOperationUtil.java index 7fce98a4..64c75a76 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/util/AdvancedOperationUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/util/AdvancedOperationUtil.java @@ -295,6 +295,18 @@ public class AdvancedOperationUtil { return false; } + public static boolean hasEditableFineLavoriDate(IntPratica intPratica){ + if(Validator.isNotNull(intPratica)){ + try { + return Validator.isNotNull( + getEditableFineLavoriDate(intPratica)); + } catch (Exception e) { + return false; + } + } + return false; + } + public static Date getEditableFineLavoriDate(IntPratica intPratica){ if(Validator.isNotNull(intPratica)){ try { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/html/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/html/view.jsp index 7950ddfa..222d3ee6 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/html/view.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/html/view.jsp @@ -416,7 +416,7 @@ - <% if(AdvancedOperationUtil.hasEditableFineLavori(intPratica)){ %> + <% if(AdvancedOperationUtil.hasEditableFineLavoriDate(intPratica) && AdvancedOperationUtil.hasEditableFineLavori(intPratica)){ %>
@@ -431,7 +431,6 @@ %>
-

Data Fine Lavori:

- + -