Skip to content

Commit

Permalink
Fix value get_custom_field_value($documentField)
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermecotaGn committed Jan 11, 2022
1 parent 389cc56 commit c02005b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gerencianetcharge.php
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ function gerencianetcharge_link($params)
/* ********************************************* Coleta os dados do cliente ************************************************* */

$clientId = $params['clientdetails']['id'];
$document = preg_replace("/[^0-9]/", "", get_custom_field_value((string)"CPF/CNPJ", $clientId));
$document = preg_replace("/[^0-9]/", "", get_custom_field_value((string)$documentField, $clientId));
$corporateName = $params['clientdetails']['companyname'];

$name = $params['clientdetails']['firstname'] . ' ' . $params['clientdetails']['lastname'];
Expand Down

0 comments on commit c02005b

Please sign in to comment.