Commit 57518b7950ea50827fb2f93896979841facd653f
1 parent
d108e181
Exists in
master
and in
21 other branches
AJustes US042: refs #8517
Showing
2 changed files
with
4 additions
and
3 deletions
Show diff stats
rn/ExpedirProcedimentoRN.php
... | ... | @@ -396,7 +396,8 @@ class ExpedirProcedimentoRN extends InfraRN { |
396 | 396 | $objProcesso->dataHoraDeProducao = $this->objProcessoEletronicoRN->converterDataWebService($objProcedimentoDTO->getDtaGeracaoProtocolo()); |
397 | 397 | |
398 | 398 | if($this->obterNivelSigiloPEN($objProcedimentoDTO->getStrStaNivelAcessoGlobalProtocolo()) == ProtocoloRN::$NA_RESTRITO){ |
399 | - $objProcesso->hipoteseLegal = $objPenRelHipoteseLegalRN->getIdHipoteseLegalPEN($objProcedimentoDTO->getNumIdHipoteseLegalProtocolo()); | |
399 | + $objProcesso->hipoteseLegal = new stdClass(); | |
400 | + $objProcesso->hipoteseLegal->identificacao = $objPenRelHipoteseLegalRN->getIdHipoteseLegalPEN($objProcedimentoDTO->getNumIdHipoteseLegalProtocolo()); | |
400 | 401 | } |
401 | 402 | |
402 | 403 | $this->atribuirProdutorProcesso($objProcesso, | ... | ... |
rn/ReceberProcedimentoRN.php
... | ... | @@ -581,7 +581,7 @@ class ReceberProcedimentoRN extends InfraRN |
581 | 581 | |
582 | 582 | if($this->obterNivelSigiloSEI($objProcesso->nivelDeSigilo) == ProtocoloRN::$NA_RESTRITO){ |
583 | 583 | $objHipoteseLegalRecebido = new PenRelHipoteseLegalRecebidoRN(); |
584 | - $numIdHipoteseLegal = $objHipoteseLegalRecebido->getIdHipoteseLegalSEI($objProcesso->hipoteseLegal); | |
584 | + $numIdHipoteseLegal = $objHipoteseLegalRecebido->getIdHipoteseLegalSEI($objProcesso->hipoteseLegal->identificacao); | |
585 | 585 | if (empty($numIdHipoteseLegal)) { |
586 | 586 | $objPenParametroRN = new PenParametroRN(); |
587 | 587 | $objProtocoloDTO->setNumIdHipoteseLegal($objPenParametroRN->getParametro('HIPOTESE_LEGAL_PADRAO')); |
... | ... | @@ -1117,7 +1117,7 @@ class ReceberProcedimentoRN extends InfraRN |
1117 | 1117 | |
1118 | 1118 | if ($this->obterNivelSigiloSEI($objDocumento->nivelDeSigilo) == ProtocoloRN::$NA_RESTRITO) { |
1119 | 1119 | $objHipoteseLegalRecebido = new PenRelHipoteseLegalRecebidoRN(); |
1120 | - $numIdHipoteseLegal = $objHipoteseLegalRecebido->getIdHipoteseLegalSEI($objDocumento->hipoteseLegal); | |
1120 | + $numIdHipoteseLegal = $objHipoteseLegalRecebido->getIdHipoteseLegalSEI($objDocumento->hipoteseLegal->identificacao); | |
1121 | 1121 | if (empty($numIdHipoteseLegal)) { |
1122 | 1122 | $objPenParametroRN = new PenParametroRN(); |
1123 | 1123 | $objDocumentoDTO->getObjProtocoloDTO()->setNumIdHipoteseLegal($objPenParametroRN->getParametro('HIPOTESE_LEGAL_PADRAO')); | ... | ... |