diff --git a/admin/reports.inc.php b/admin/reports.inc.php index fae5e40..0a5e429 100644 --- a/admin/reports.inc.php +++ b/admin/reports.inc.php @@ -730,9 +730,16 @@ foreach($report_stock as $n=>$v) { /* See if any of the "group" fields have changed */ foreach($report['group'] as $x=>$g) { $c = $fieldname[$g['field']]; - if($last_group_data[$c] != $i[$c]) + + if($fields[$g['field']]['exec_function']) + $i_c=call_user_func_array($fields[$g['field']]['exec_function'], array($report,$f,$i[$c])); + else + $i_c=$i[$c]; + + if($last_group_data[$c] != $i_c) $group_change = true; - $last_group_data[$c] = $i[$c]; + + $last_group_data[$c] = $i_c; } if($group_change) {