Skip to content

Commit

Permalink
🐛 BASE #280 autocomplete utf8_decode compativel com PHP 8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
bjverde committed Dec 14, 2022
1 parent 756ad37 commit ca9e5db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion base/callbacks/autoCompletar.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function autoCompletar($jsonBusca,$strOrigem,$divSelect,$idsRetorno,$nomePacoteF
// construir array de pesquisa e pesquisar no banco
$bvars = array();
foreach ( $arrCampoDescricao as $k=>$v ) {
$bvars[$v] = utf8_decode($arrBusca[$k]);
$bvars[$v] = StringHelper::utf8_decode($arrBusca[$k]);
}

// Por razões de segurança, o variável num_pessoa tem que ser lido da sessão
Expand Down
2 changes: 1 addition & 1 deletion base/callbacks/autocomplete.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
//----------------------------------------------------------------------------------
foreach($_REQUEST as $k=>$v) {
// decodificar os parametros recebidos
$v = utf8_decode($v);
$v = StringHelper::utf8_decode($v);
$_REQUEST[$k] = $v;

// os parametros para adicionar ao bvars vem prefixados com _w_ ( de where )
Expand Down

0 comments on commit ca9e5db

Please sign in to comment.