Deleted reports from cron
This commit is contained in:
parent
5894454387
commit
a2b3d6e07f
|
@ -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;
|
|
@ -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;
|
||||
|
|
|
@ -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 ();
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue