Skip to content

Commit

Permalink
fix: Corrigido um bug onde ao selecionar o checkbox de um órgão que e…
Browse files Browse the repository at this point in the history
…steja inativo e em seguida realizar uma pesquisa por órgãos inativos através do filtro estado. Esta ação estava reativando o órgão selecionado sem clicar no botão reativar.
  • Loading branch information
MatheusMarques80 committed Jul 21, 2023
1 parent bef683a commit 1453c4d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pen_map_orgaos_externos_listar.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
break;

case 'pen_map_orgaos_externos_reativar':
if(isset($_POST['hdnInfraItensSelecionados']) && !empty($_POST['hdnInfraItensSelecionados'])) {
if((isset($_POST['hdnInfraItensSelecionados']) && !empty($_POST['hdnInfraItensSelecionados'])) && isset($_POST['hdnAcaoReativar'])) {
$arrHdnInInfraItensSelecionados = explode(",", $_POST['hdnInfraItensSelecionados']);
foreach ($arrHdnInInfraItensSelecionados as $id) {
$objPenOrgaoExternoDTO = new PenOrgaoExternoDTO();
Expand Down Expand Up @@ -361,6 +361,8 @@ function onClickBtnReativar(){
if (len > 0) {
if (confirm('Confirma a reativação de ' + len + ' relacionamento(s) entre órgãos ?')) {
var form = jQuery('#frmAcompanharEstadoProcesso');
var acaoReativar = $("<input>").attr({ type: "hidden", name: "hdnAcaoReativar", value: "1" });
form.append(acaoReativar);
form.attr('action', '<?php print $objSessao->assinarLink('controlador.php?acao='.PEN_RECURSO_BASE.'_reativar&acao_origem='.$_GET['acao_origem'].'&acao_retorno='.PEN_RECURSO_BASE.'_listar'); ?>');
form.submit();
}
Expand Down

0 comments on commit 1453c4d

Please sign in to comment.