Deleted reports from cron

This commit is contained in:
manuel.montes 2018-09-12 13:43:23 +02:00
parent 5894454387
commit a2b3d6e07f
4 changed files with 15 additions and 0 deletions

View File

@ -18,4 +18,10 @@ ALTER TABLE `tlayout_template_data` ADD COLUMN `linked_layout_status_as_service_
ALTER TABLE `tlayout_template_data` ADD COLUMN `linked_layout_status_as_service_critical` FLOAT(20, 3) NOT NULL default 0;
ALTER TABLE `tlayout_template_data` ADD COLUMN `linked_layout_node_id` INT(10) NOT NULL default 0;
-- -----------------------------------------------------
-- Add column in table `treport`
-- -----------------------------------------------------
ALTER TABLE `treport` ADD COLUMN `hidden` tinyint(1) NOT NULL DEFAULT 0;
COMMIT;

View File

@ -1768,3 +1768,9 @@ CREATE TABLE IF NOT EXISTS `tlayout_template_data` (
PRIMARY KEY(`id`),
FOREIGN KEY (`id_layout_template`) REFERENCES tlayout_template(`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB DEFAULT CHARSET=utf8;
-- -----------------------------------------------------
-- Add column in table `treport`
-- -----------------------------------------------------
ALTER TABLE `treport` ADD COLUMN `hidden` tinyint(1) NOT NULL DEFAULT 0;

View File

@ -95,10 +95,12 @@ function reports_get_reports ($filter = false, $fields = false,
$filter[] = sprintf ('private = 0 OR (private = 1 AND id_user = "%s")',
$config['id_user']);
*/
$filter['hidden'] = 0;
if (is_array ($fields)) {
$fields[] = 'id_group';
$fields[] = 'id_user';
$fields[] = 'id_group_edit';
$fields[] = 'hidden';
}
$reports = array ();

View File

@ -1242,6 +1242,7 @@ CREATE TABLE IF NOT EXISTS `treport` (
`id_group_edit` mediumint(8) unsigned NULL DEFAULT 0,
`metaconsole` tinyint(1) DEFAULT 0,
`non_interactive` tinyint(1) UNSIGNED NOT NULL default 0,
`hidden` tinyint(1) DEFAULT 0,
PRIMARY KEY(`id_report`)
) ENGINE = InnoDB DEFAULT CHARSET=utf8;