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)){ %>
Data Fine Lavori: