Commit 47866ca5009ee7b39086e67076dfb77bac930c48
1 parent
43fc6774
Exists in
master
and in
21 other branches
[Fixed #21] Correção de erro Creating default object from empty value
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
rn/ExpedirProcedimentoRN.php
... | ... | @@ -838,12 +838,12 @@ class ExpedirProcedimentoRN extends InfraRN { |
838 | 838 | |
839 | 839 | $documento->dataHoraDeProducao = $this->objProcessoEletronicoRN->converterDataWebService($documentoDTO->getDtaGeracaoProtocolo()); |
840 | 840 | |
841 | + $documento->produtor = new stdClass(); | |
841 | 842 | $usuarioDTO = $this->consultarUsuario($documentoDTO->getNumIdUsuarioGeradorProtocolo()); |
842 | 843 | if(isset($usuarioDTO)) { |
843 | - $documento->produtor = new stdClass(); | |
844 | 844 | $documento->produtor->nome = utf8_encode($usuarioDTO->getStrNome()); |
845 | 845 | $documento->produtor->numeroDeIdentificacao = $usuarioDTO->getDblCpfContato(); |
846 | - //TODO: Obter tipo de pessoa fsica dos contextos/contatos do SEI | |
846 | + //TODO: Obter tipo de pessoa fsica dos contextos/contatos do SEI | |
847 | 847 | $documento->produtor->tipo = self::STA_TIPO_PESSOA_FISICA;; |
848 | 848 | } |
849 | 849 | ... | ... |