Commit 7c5b914df7e3ee25e1022fc91db4671e860187b9
1 parent
67a5566d
Exists in
master
and in
1 other branch
Alteracoes identificadas nos testes do app SEI. Problemas com a pesquisa de processo no aplicativo
Showing
1 changed file
with
4 additions
and
2 deletions
Show diff stats
rn/MdWsSeiProcedimentoRN.php
| ... | ... | @@ -1103,7 +1103,9 @@ class MdWsSeiProcedimentoRN extends InfraRN |
| 1103 | 1103 | $objAtividadesAbertasDTO->setNumIdUnidade(SessaoSEI::getInstance()->getNumIdUnidadeAtual()); |
| 1104 | 1104 | $arrObjAtividadesAbertasDTO = $atividadeRN->listarRN0036($objAtividadesAbertasDTO); |
| 1105 | 1105 | |
| 1106 | - $numTipoVisualizacao=$arrObjAtividadesAbertasDTO[0]->getNumTipoVisualizacao(); | |
| 1106 | + if ($arrObjAtividadesAbertasDTO) { | |
| 1107 | + $numTipoVisualizacao=$arrObjAtividadesAbertasDTO[0]->getNumTipoVisualizacao(); | |
| 1108 | + } | |
| 1107 | 1109 | |
| 1108 | 1110 | if ($numTipoVisualizacao && ($numTipoVisualizacao == AtividadeRN::$TV_NAO_VISUALIZADO)){ |
| 1109 | 1111 | $usuarioVisualizacao = 'N'; |
| ... | ... | @@ -1255,7 +1257,7 @@ class MdWsSeiProcedimentoRN extends InfraRN |
| 1255 | 1257 | } |
| 1256 | 1258 | |
| 1257 | 1259 | $objInfraParametro = new InfraParametro(BancoSEI::getInstance()); |
| 1258 | - $processoGeradoRecebido = $dto->getNumIdUnidadeGeradoraProtocolo() == SessaoSEI::getInstance()->getNumIdUnidadeAtual() ? 'G' : 'R'; | |
| 1260 | + $processoGeradoRecebido = $protocoloDTO->getNumIdUnidadeGeradora() == SessaoSEI::getInstance()->getNumIdUnidadeAtual() ? 'G' : 'R'; | |
| 1259 | 1261 | |
| 1260 | 1262 | $result[] = array( |
| 1261 | 1263 | 'id' => $protocoloDTO->getDblIdProtocolo(), | ... | ... |