Merge branch 'ent-6994-cambiar-el-orden-de-los-items-de-un-template-en-iformes-no-funciona' into 'develop'

unsort template items

See merge request 
This commit is contained in:
Daniel Rodriguez 2021-04-06 17:22:33 +00:00
commit 8b817c63c7
1 changed files with 8 additions and 0 deletions
pandora_console/include

View File

@ -189,6 +189,14 @@ function reporting_make_reporting_data(
$metaconsole_on = is_metaconsole();
$index_content = 0;
usort(
$contents,
function ($a, $b) {
return ($a['order'] <=> $b['order']);
}
);
foreach ($contents as $content) {
$content['name'] = io_safe_input($content['name']);
$content['description'] = io_safe_input($content['description']);