From 466927a822e92e4071779ca6020743248a6a621b Mon Sep 17 00:00:00 2001 From: dave Date: Mon, 30 Mar 2009 20:15:42 +0000 Subject: [PATCH] Ok, now the file i was tryign to commit. This one add components to the filter options, in case the report filters on something that is not being displayed. --- admin/reports.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/admin/reports.inc.php b/admin/reports.inc.php index 60d658b..89b8930 100644 --- a/admin/reports.inc.php +++ b/admin/reports.inc.php @@ -665,6 +665,10 @@ foreach($report_stock as $n=>$v) { } $t = $filter_ops[$d['x']]; $filter[] = "{$fields[$f]['table']} $t '{$d['value']}'"; + if(is_array($fields[$f]['components'])) { + $components = array_merge($components, + $fields[$f]['components']); + } } $sel = implode(",", $sel); $order = implode(",", $order);