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 artica/pandorafms!3810
This commit is contained in:
Daniel Rodriguez 2021-04-06 17:22:33 +00:00
commit 8b817c63c7

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']);