diff --git a/pandora_console/extras/mr/53.sql b/pandora_console/extras/mr/53.sql index 10021cb5c2..8a9bc31400 100644 --- a/pandora_console/extras/mr/53.sql +++ b/pandora_console/extras/mr/53.sql @@ -22,5 +22,8 @@ CREATE TABLE IF NOT EXISTS `tbackup` ( PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4; - +ALTER TABLE `treport_content` ADD COLUMN `macros_definition` TEXT; +ALTER TABLE `treport_content` ADD COLUMN `render_definition` TEXT; +ALTER TABLE `treport_content_template` ADD COLUMN `macros_definition` TEXT; +ALTER TABLE `treport_content_template` ADD COLUMN `render_definition` TEXT; COMMIT; diff --git a/pandora_console/godmode/reporting/reporting_builder.item_editor.php b/pandora_console/godmode/reporting/reporting_builder.item_editor.php index 901549b253..2186c455d2 100755 --- a/pandora_console/godmode/reporting/reporting_builder.item_editor.php +++ b/pandora_console/godmode/reporting/reporting_builder.item_editor.php @@ -176,6 +176,8 @@ $unknown_checks = true; $agent_max_value = true; $agent_min_value = true; $uncompressed_module = true; +$macros_definition = ''; +$render_definition = ''; $only_data = false; @@ -724,6 +726,12 @@ switch ($action) { $graph_render = $item['graph_render']; break; + case 'custom_render': + $description = $item['description']; + $macros_definition = $item['macros_definition']; + $render_definition = $item['render_definition']; + break; + case 'top_n': $description = $item['description']; $period = $item['period']; @@ -2441,6 +2449,38 @@ $class = 'databox filters'; +