Corretto bug di conversione UTF8 json in amministrazione sulle tabelle
delle notizie
This commit is contained in:
@@ -36,6 +36,11 @@ $exposedFields = array(
|
||||
);
|
||||
|
||||
$ret = DatatablesHelper::getResult($useModel, $permissionFlagRequired, $exposedFields, array("status"=>NotiziaModel::STATUS_ACCEPTED));
|
||||
if (property_exists($ret, "data") && sizeof($ret->data)>0){
|
||||
foreach ($ret->data as $key=>$ele ){
|
||||
$ret->data[$key]->sottotitolo = iconv('UTF-8', 'UTF-8//IGNORE', html_entity_decode($ret->data[$key]->sottotitolo));
|
||||
}
|
||||
}
|
||||
echo json_encode($ret);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user