From ac016c4c9d708c3ea3e083ccef30d5c07454207b Mon Sep 17 00:00:00 2001 From: Enrique Martin Date: Thu, 8 Feb 2024 17:36:05 +0100 Subject: [PATCH] Fixed policies export order --- pandora_console/include/class/Prd.class.php | 40 ++++++++++----------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/pandora_console/include/class/Prd.class.php b/pandora_console/include/class/Prd.class.php index 45cc2acb35..731f4f0f67 100644 --- a/pandora_console/include/class/Prd.class.php +++ b/pandora_console/include/class/Prd.class.php @@ -343,6 +343,26 @@ class Prd 'ref' => ['id_policy'], 'value' => ['id'], ], + [ + 'table' => 'tpolicy_modules', + 'ref' => ['id_policy'], + 'value' => ['id'], + 'data' => [ + [ + 'table' => 'ttag_policy_module', + 'ref' => ['id_policy_module'], + 'value' => [ + 'id_tag', + 'id_policy_module', + ], + ], + [ + 'table' => 'tpolicy_modules_synth', + 'ref' => ['id_agent_module_target'], + 'value' => ['id'], + ], + ], + ], [ 'table' => 'tpolicy_alerts', 'ref' => ['id_policy'], @@ -370,26 +390,6 @@ class Prd 'ref' => ['id_policy'], 'value' => ['id'], ], - [ - 'table' => 'tpolicy_modules', - 'ref' => ['id_policy'], - 'value' => ['id'], - 'data' => [ - [ - 'table' => 'ttag_policy_module', - 'ref' => ['id_policy_module'], - 'value' => [ - 'id_tag', - 'id_policy_module', - ], - ], - [ - 'table' => 'tpolicy_modules_synth', - 'ref' => ['id_agent_module_target'], - 'value' => ['id'], - ], - ], - ], [ 'table' => 'tpolicy_modules_inventory', 'ref' => ['id_policy'],