Merge branch 'ent-4239-entities-en-exportacion-de-informes-nodo-meta' into 'develop'

Removed entitites

See merge request artica/pandorafms!2519
This commit is contained in:
Alejandro Fraguas 2020-02-24 14:15:14 +01:00
commit 568b869681
3 changed files with 1645 additions and 2169 deletions

View File

@ -3081,8 +3081,6 @@ function array2XML($data, $root=null, $xml=null)
$node = $xml->addChild($key);
array2XML($value, $root, $node);
} else {
$value = htmlentities($value);
if (!is_numeric($value) && !is_bool($value)) {
if (!empty($value)) {
$xml->addChild($key, $value);

File diff suppressed because it is too large Load Diff

View File

@ -31,14 +31,6 @@ function reporting_xml_get_report($report, $filename, $return=false)
unset($report['private']);
unset($report['custom_logo']);
// ----------------------------------------------------------------------
// change agent name.
if (count($report['contents']) > 0) {
for ($i = 0; $i < count($report['contents']); $i++) {
$aux = explode('-', $report['contents'][$i]['subtitle']);
$report['contents'][$i]['subtitle'] = db_get_value('alias', 'tagente', 'nombre', $report['contents'][$i]['agent_name']).' -'.$aux[1];
}
}
// Remove entities.
$report = io_safe_output($report);