Bug 6258 - Guided reports wizard 'Build new' brings up empty page
authorLiz Rea <lrea@nekls.org>
Fri, 20 May 2011 19:41:20 +0000 (14:41 -0500)
committerChris Cormack <chrisc@catalyst.net.nz>
Wed, 25 May 2011 23:27:56 +0000 (11:27 +1200)
Patch fixes a TT error that caused Build New to be empty.

To test:
Click More -> Reports, you should see the welcome page and be able to step through creating the report.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
reports/guided_reports.pl

index 600ac29..40983fd 100755 (executable)
@@ -621,7 +621,7 @@ sub header_cell_loop {
 }
 
 foreach (1..6) {
-    $template->param('build' . $_) and $template->param(buildx => $_) and last;
+     $template->{VARS}->{'build' . $_} and $template->{VARS}->{'buildx' . $_} and last;
 }
 $template->param(   'referer' => $input->referer(),
                     'DHTMLcalendar_dateformat' => C4::Dates->DHTMLcalendar(),