From 3141d7755efbca4d2eb7babc1d31629295451885 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Tue, 13 Oct 2009 14:11:23 +0000 Subject: [PATCH] Changed Tag types in reports_classes to be the same as defined in types.inc. Suitable height=5 --- CHANGELOG.txt | 2 ++ reporting/includes/reports_classes.inc | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 0c79678f..315a846c 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -32,6 +32,8 @@ $ /admin/db/users_db.inc /themes/aqua/renderer.php /themes/cool/renderer.php /themes/default/renderer.php +! Changed Tag types in reports_classes to be the same as defined in types.inc. Suitable height=5 +$ /reporting/includes/reports_classes.inc 12-Oct-2009 Janusz Dobrowolski # Fixed sql injection vulnerability on some php/mysql configurations diff --git a/reporting/includes/reports_classes.inc b/reporting/includes/reports_classes.inc index 530add3d..5ff1c72a 100644 --- a/reporting/includes/reports_classes.inc +++ b/reporting/includes/reports_classes.inc @@ -348,11 +348,11 @@ class Report case 'ACCOUNTTAGS': case 'DIMENSIONTAGS': if ($param->param_type == 'ACCOUNTTAGS') - $type = 0; + $type = TAG_ACCOUNT; else - $type = 1; + $type = TAG_DIMENSION; $sql = "SELECT id, name FROM ".TB_PREF."tags WHERE type=$type"; - $st .= combo_input("PARAM_$index", '', $sql, 'id', 'name',array('spec_option'=>_("No tags"),'spec_id' => ALL_NUMERIC,'multi'=>true,'height'=>4)); + $st .= combo_input("PARAM_$index", '', $sql, 'id', 'name',array('spec_option'=>_("No tags"),'spec_id' => ALL_NUMERIC,'multi'=>true,'height'=>5)); break; } -- 2.30.2