diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index bc330e22e..c865a5ac0 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -15,6 +15,7 @@ - fixed #9002: add a variant in admin product view misses i18n link - fixed #9034: Removed all instances of srand. This is called implicitily by rand and be dangerous if called mulitple times by the same process. - fixed: DataForm now allows you to edit existing tabs + - fixed #9064: SQLReport now replaces field name spaces with hyphens for the direct access template params. 7.6.2 - fixed: not allowed to add calendar events if in can edit group but not can add event group diff --git a/lib/WebGUI/Asset/Wobject/SQLReport.pm b/lib/WebGUI/Asset/Wobject/SQLReport.pm index bdb1394dc..953f20321 100644 --- a/lib/WebGUI/Asset/Wobject/SQLReport.pm +++ b/lib/WebGUI/Asset/Wobject/SQLReport.pm @@ -680,7 +680,9 @@ sub _processQuery { 'field.value'=>$data->{$name} }); $colnum++; - $row{$prefix.'row.field.'.$name.'.value'} = $data->{$name}; + my $tmpl_name = $name; + $tmpl_name =~ s/\ /-/g; + $row{$prefix.'row.field.'.$tmpl_name.'.value'} = $data->{$name}; } # Process nested query if($nest && $self->{_query}{$nr + 1}{dbQuery}) {