From: Joe Hunt Date: Tue, 13 Oct 2009 14:11:23 +0000 (+0000) Subject: Changed Tag types in reports_classes to be the same as defined in types.inc. Suitable... X-Git-Tag: v2.4.2~19^2~1127 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=3141d7755efbca4d2eb7babc1d31629295451885;p=fa-stable.git Changed Tag types in reports_classes to be the same as defined in types.inc. Suitable height=5 --- 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; }