Sfoglia il codice sorgente

fix funzione unita operativa AOP

feature/advanced-operation
marcoalderighi 2 anni fa
parent
commit
ded49f6001
  1. 6
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/util/AdvancedOperationUtil.java

6
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/util/AdvancedOperationUtil.java

@ -272,8 +272,10 @@ public class AdvancedOperationUtil {
if(Validator.isNotNull(lastTask)){ if(Validator.isNotNull(lastTask)){
long assigneeUserId = lastTask.getAssigneeUserId(); long assigneeUserId = lastTask.getAssigneeUserId();
try { try {
User assignee = UserLocalServiceUtil.getUser(assigneeUserId); if(-1 != assigneeUserId){
return UserUtil.getUnitaOperative(assignee); User assignee = UserLocalServiceUtil.getUser(assigneeUserId);
return UserUtil.getUnitaOperative(assignee);
}
} catch (SystemException | PortalException e){ } catch (SystemException | PortalException e){
_log.error("AOP ==> Error while analyzing IntPratica: " + intPratica.getIntPraticaId()); _log.error("AOP ==> Error while analyzing IntPratica: " + intPratica.getIntPraticaId());
_log.error(e,e); _log.error(e,e);

Caricamento…
Annulla
Salva