Minor bug in currency
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 8 Oct 2009 10:25:44 +0000 (10:25 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 8 Oct 2009 10:25:44 +0000 (10:25 +0000)
reporting/includes/reports_classes.inc

index fd424fb213a9f36271735c1d206dc3ff1baf2381..7bdb916e3d3e6d20d964c3269fa216ad1f647c73 100644 (file)
@@ -134,8 +134,8 @@ class Report
                        switch ($param->param_type)
                        {
                                case 'CURRENCY':
-                                       $sql = "SELECT curr_abrev, concat(curr_abrev,' - ', currency) FROM ".TB_PREF."currencies";
-                                       $st .= dup_simple_codeandname_list($sql, "PARAM_$index", $dummy, true, _("No Currency Filter"));
+                                       $sql = "SELECT curr_abrev, concat(curr_abrev,' - ', currency) AS name FROM ".TB_PREF."currencies";
+                                       $st .= combo_input("PARAM_$index", '', $sql, 'curr_abrev', 'name',array('spec_option'=>_("No Currency Filter"),'spec_id'=>ALL_TEXT,'order'=>false));
                                        break;
                                case 'DATE':
                                case 'DATEBEGIN':