Changed Tag types in reports_classes to be the same as defined in types.inc. Suitable...
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Tue, 13 Oct 2009 14:11:23 +0000 (14:11 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Tue, 13 Oct 2009 14:11:23 +0000 (14:11 +0000)
CHANGELOG.txt
reporting/includes/reports_classes.inc

index 0c79678fe348356f5c49bf819ca80fd18326d652..315a846c479772a047623975799206f04772cd70 100644 (file)
@@ -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
index 530add3d1124cbd5e46fb5f391320fb0561a6535..5ff1c72a0ad8dc6adb9186581e542437b96ac5ae 100644 (file)
@@ -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;
 
                        }