From e72f94d0a2f61d5210ba5378ec3363747643dd92 Mon Sep 17 00:00:00 2001 From: Glaydson Rodrigues Date: Thu, 9 Jan 2025 10:45:03 -0300 Subject: [PATCH] =?UTF-8?q?fix:=20corre=C3=A7=C3=B5es=20iniciais=20para=20?= =?UTF-8?q?tramite=20no=20sei=205.0.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 3 +-- src/rn/ReceberProcedimentoRN.php | 4 ++-- tests_sei41/funcional/docker-compose.yml | 4 ++-- .../funcional/src/paginas/PaginaPenHipoteseLegalListar.php | 2 +- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index dd967eb8..933b0204 100755 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ # Parâmetros de execução do comando MAKE # Opções possíveis para spe (sistema de proc eletronico): sei3, sei4, sei41, super -sistema=super +sistema=sei41 base=mysql teste= @@ -159,7 +159,6 @@ install: check-isalive $(CMD_COMPOSE_FUNC) exec -w /opt/sip/scripts/$(MODULO_PASTAS_CONFIG) org2-http bash -c "$(CMD_INSTALACAO_SIP_MODULO)" wget -nc -i $(PEN_TEST_FUNC)/assets/arquivos/test_files_index.txt -P $(PEN_TEST_FUNC)/.tmp - cp $(PEN_TEST_FUNC)/.tmp/* /tmp .env: diff --git a/src/rn/ReceberProcedimentoRN.php b/src/rn/ReceberProcedimentoRN.php index 21be8ab0..3c3b3da5 100755 --- a/src/rn/ReceberProcedimentoRN.php +++ b/src/rn/ReceberProcedimentoRN.php @@ -977,7 +977,7 @@ private function atualizarProcedimento($parDblIdProcedimento, $objMetadadosProce $this->registrarAndamentoRecebimentoProcesso($objProcedimentoDTO, $objMetadadosProcedimento); //Cadastro das atividades para quando o destinatário é desviado pelo receptor (!3!) - if ($this->destinatarioReal->numeroDeIdentificacaoDaEstrutura) { + if (isset($this->destinatarioReal->numeroDeIdentificacaoDaEstrutura) && !empty($this->destinatarioReal->numeroDeIdentificacaoDaEstrutura)) { $this->gerarAndamentoUnidadeReceptora($parDblIdProcedimento); } @@ -2844,7 +2844,7 @@ private function criarDiretorioAnexo($parObjAnexoDTO) private function adicionarObservacoesSobreNumeroDocumento($parObjDocumento) { $arrObjObservacoes = array(); - $strNumeroDocumentoOrigem = isset($parObjDocumento->protocolo) ? $parObjDocumento->protocolo : $parObjDocumento->produtor->numeroDeIdentificacao; + $strNumeroDocumentoOrigem = isset($parObjDocumento->protocolo) ? $parObjDocumento->protocolo : $parObjDocumento->produtor['numeroDeIdentificacao']; if(!empty($strNumeroDocumentoOrigem)){ $objObservacaoDTO = new ObservacaoDTO(); $objObservacaoDTO->setStrDescricao("Número do Documento na Origem: " . $strNumeroDocumentoOrigem); diff --git a/tests_sei41/funcional/docker-compose.yml b/tests_sei41/funcional/docker-compose.yml index 90752dc2..454c854e 100755 --- a/tests_sei41/funcional/docker-compose.yml +++ b/tests_sei41/funcional/docker-compose.yml @@ -124,7 +124,7 @@ services: ### CONTAINERS DO AMBIENTE DO ÓRGÃO 1 ### org1-database: - image: ${ORG1_DATABASE_IMAGE}:${ENVIRONMENT_VERSION} + image: ${ORG1_DATABASE_IMAGE} restart: always environment: MYSQL_ROOT_PASSWORD: P@ssword @@ -184,7 +184,7 @@ services: ### CONTAINERS DO AMBIENTE DO ÓRGÃO 2 ### org2-database: - image: ${ORG2_DATABASE_IMAGE}:${ENVIRONMENT_VERSION} + image: ${ORG2_DATABASE_IMAGE} restart: always environment: MYSQL_ROOT_PASSWORD: P@ssword diff --git a/tests_sei41/funcional/src/paginas/PaginaPenHipoteseLegalListar.php b/tests_sei41/funcional/src/paginas/PaginaPenHipoteseLegalListar.php index 2d62e642..e2fda2cf 100644 --- a/tests_sei41/funcional/src/paginas/PaginaPenHipoteseLegalListar.php +++ b/tests_sei41/funcional/src/paginas/PaginaPenHipoteseLegalListar.php @@ -37,7 +37,7 @@ public function existeTabela() { try { $trTh = $this->test->byXPath('//*[@id="divInfraAreaTabela"]/table/tbody/tr[1]/th[2]')->text(); - return !empty($trTh) && !is_null($trTh) && count($trTh) >= 1; + return !empty($trTh) && !is_null($trTh); } catch (Exception $ex) { return false; }