From 6b6825f9fcf1b4e5cf3682b6e891cd7b9883036d Mon Sep 17 00:00:00 2001 From: marcoalderighi Date: Tue, 28 Feb 2023 10:43:17 +0100 Subject: [PATCH] fixed updateStatus call --- .../advanced/operation/portlet/AdvancedOperationPortlet.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/portlet/AdvancedOperationPortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/portlet/AdvancedOperationPortlet.java index 97913f9c..80c5a05a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/portlet/AdvancedOperationPortlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/portlet/AdvancedOperationPortlet.java @@ -90,7 +90,9 @@ public class AdvancedOperationPortlet extends MVCPortlet { IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId); if(WorkflowConstants.STATUS_DRAFT == intPratica.getStatus()){ - IntPraticaLocalServiceUtil.updateStatus(intPraticaId, WorkflowConstants.STATUS_PENDING); + intPratica.setStatus(WorkflowConstants.STATUS_PENDING); + intPratica.setModifiedDate(new Date()); + IntPraticaLocalServiceUtil.updateIntPratica(intPratica); } else { SessionErrors.add(actionRequest, "operazione-impossibile"); }