From c16933e51a120fe2374587f18e0b14dcc0d8a03e Mon Sep 17 00:00:00 2001 From: Jaiver Pastor Date: Wed, 13 May 2020 00:00:40 +0200 Subject: [PATCH 1/2] fix db_template, "db_update_v12" missing. --- src/include/db_template.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/db_template.txt b/src/include/db_template.txt index b1e2f250..b8b2f4d0 100644 --- a/src/include/db_template.txt +++ b/src/include/db_template.txt @@ -175,7 +175,7 @@ DROP TABLE IF EXISTS `logcon_savedreports`; CREATE TABLE `logcon_savedreports` ( `ID` int(11) NOT NULL auto_increment, `reportid` varchar(255) NOT NULL, - `sourceid` int(11) NOT NULL, + `sourceid` varchar(11) NOT NULL, `customTitle` varchar(255) NOT NULL, `customComment` text NOT NULL, `filterString` text NOT NULL, From 75776cf4950c98be42aac23abbbfe7a2e522da70 Mon Sep 17 00:00:00 2001 From: Jaiver Pastor Date: Wed, 13 May 2020 00:34:52 +0200 Subject: [PATCH 2/2] Fix query UPDATE --- src/admin/reports.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/admin/reports.php b/src/admin/reports.php index bc327e1b..4108d416 100644 --- a/src/admin/reports.php +++ b/src/admin/reports.php @@ -1185,7 +1185,7 @@ else { $sqlquery = "UPDATE " . DB_SAVEDREPORTS . " SET - sourceid = " . $content['SourceID'] . ", + sourceid = '" . $content['SourceID'] . "', customTitle = '" . $content['customTitle'] . "', customComment = '" . $content['customComment'] . "', filterString = '" . $content['filterString'] . "',