Salvatore La Manna 2 anni fa
parent
commit
d7edf4ce50
  1. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SorteggioPraticaUtil.java
  2. 1
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/FascicoloFePortlet.java

3
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SorteggioPraticaUtil.java

@ -131,6 +131,9 @@ public class SorteggioPraticaUtil {
IntPratica pratica = m.getValue();
long intPraticaId = pratica.getIntPraticaId();
DettPratica dettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPraticaId);
if (Validator.isNull(dettPratica)) {
dettPratica =DettPraticaLocalServiceUtil.getLastEditableByIntPratica(intPraticaId);
}
_log.info("Pratica " + pratica.getNumeroProgetto() + " id " + pratica.getIntPraticaId()
+ " dettPratica " + (dettPratica == null ? 0 : dettPratica.getDettPraticaId()));
ServiceContext serviceContext = new ServiceContext();

1
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/FascicoloFePortlet.java

@ -685,7 +685,6 @@ public class FascicoloFePortlet extends MVCPortlet {
response.sendRedirect(successURL);
} else if ("domanda".equalsIgnoreCase(cmd)) {
saveDatiDettPratica(dettPraticaId, request, response);
} else {
throw new SystemException("operazione non gestita (" + cmd + StringPool.CLOSE_PARENTHESIS);
}

Caricamento…
Annulla
Salva