|
|
@ -90,7 +90,9 @@ public class AdvancedOperationPortlet extends MVCPortlet { |
|
|
|
IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId); |
|
|
|
IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId); |
|
|
|
|
|
|
|
|
|
|
|
if(WorkflowConstants.STATUS_DRAFT == intPratica.getStatus()){ |
|
|
|
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 { |
|
|
|
} else { |
|
|
|
SessionErrors.add(actionRequest, "operazione-impossibile"); |
|
|
|
SessionErrors.add(actionRequest, "operazione-impossibile"); |
|
|
|
} |
|
|
|
} |
|
|
|