Skip to content

Commit

Permalink
:BUG: #286 corrigido o erro de codifiação de multibyte do substr
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael.cavalcante committed May 16, 2023
1 parent dd2432c commit 69b93ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/classes/webform/TGrid.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ public function show( $boolPrint = true ) {
$len = StringHelper::strlen($tdValue);
if ( $len>$objColumn->getMaxTextLength() ){
$cell->setProperty('title', $tdValue);
$tdValue = substr($tdValue, 0, $objColumn->getMaxTextLength()-3).' (...)';
$tdValue = mb_substr($tdValue, 0, $objColumn->getMaxTextLength()-3).' (...)';
}
}
//$tdValue = isset($res[strtoupper($fieldName)][$k]) && $res[strtoupper($fieldName)][$k] ? $res[strtoupper($fieldName)][$k]: '<center>---</center>';
Expand Down

0 comments on commit 69b93ee

Please sign in to comment.