|
|
|
@ -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"); |
|
|
|
|
} |
|
|
|
|