mirror of
https://github.com/rsyslog/loganalyzer.git
synced 2025-09-25 18:59:12 +02:00
Report admin, the custom filterstring was not saved if new report was created
This commit is contained in:
parent
895f0fe321
commit
951deadd13
@ -21,6 +21,8 @@ Version 3.2.2 (stable), ????-??-??
|
|||||||
-"Search for this" // Excludes full phrase
|
-"Search for this" // Excludes full phrase
|
||||||
- Report admin, fixed filter editor issues when full phrase strings
|
- Report admin, fixed filter editor issues when full phrase strings
|
||||||
(with spaces) were configured.
|
(with spaces) were configured.
|
||||||
|
- Report admin, the custom filterstring was not saved if new report
|
||||||
|
was created or the previous custom filterstring was empty.
|
||||||
---------------------------------------------------------------------------
|
---------------------------------------------------------------------------
|
||||||
Version 3.2.1 (stable), 2011-04-12
|
Version 3.2.1 (stable), 2011-04-12
|
||||||
- Fixed timezone parsing in GetEventTime function. This caused problems
|
- Fixed timezone parsing in GetEventTime function. This caused problems
|
||||||
|
@ -589,11 +589,17 @@ if ( isset($content['ISADDSAVEDREPORT']) && $content['ISADDSAVEDREPORT'] )
|
|||||||
// Init Filterstring variable
|
// Init Filterstring variable
|
||||||
$szFilterString = "";
|
$szFilterString = "";
|
||||||
|
|
||||||
if ( strlen($content['filterString']) > 0 &&
|
if (
|
||||||
!isset($_POST['subop']) &&
|
( strlen($content['filterString']) <= 0 &&
|
||||||
!isset($_POST['subop_edit']) &&
|
isset($_POST['report_filterString']) )
|
||||||
!isset($_POST['subop_delete']) &&
|
||
|
||||||
isset($_POST['report_filterString']) && $content['filterString'] != $_POST['report_filterString'] )
|
( strlen($content['filterString']) > 0 &&
|
||||||
|
!isset($_POST['subop']) &&
|
||||||
|
!isset($_POST['subop_edit']) &&
|
||||||
|
!isset($_POST['subop_delete']) &&
|
||||||
|
( isset($_POST['report_filterString']) && $content['filterString'] != $_POST['report_filterString'] )
|
||||||
|
)
|
||||||
|
)
|
||||||
{
|
{
|
||||||
// Overwrite filterString from form data instead of filter array!
|
// Overwrite filterString from form data instead of filter array!
|
||||||
$content['filterString'] = DB_RemoveBadChars($_POST['report_filterString']);
|
$content['filterString'] = DB_RemoveBadChars($_POST['report_filterString']);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user