forked from science-ation/science-ation
If a group by column has a exec_function, call the exec_function on the table group heading before outputting it
This commit is contained in:
parent
90d9d0a01d
commit
f558a5d8b8
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user