projects
/
koha_gimpoz
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug 6024 : add "Run report" link on the new report creation success page
[koha_gimpoz]
/
reports
/
guided_reports.pl
diff --git
a/reports/guided_reports.pl
b/reports/guided_reports.pl
index
a53712e
..
f60a37b
100755
(executable)
--- a/
reports/guided_reports.pl
+++ b/
reports/guided_reports.pl
@@
-367,9
+367,10
@@
elsif ( $phase eq 'Save Report' ) {
);
}
else {
);
}
else {
- save_report( $borrowernumber, $sql, $name, $type, $notes );
+
my $id =
save_report( $borrowernumber, $sql, $name, $type, $notes );
$template->param(
'save_successful' => 1,
$template->param(
'save_successful' => 1,
+ 'id' => $id,
);
}
}
);
}
}
@@
-484,7
+485,7
@@
elsif ($phase eq 'Run this report'){
$sql =~ s/<<$split[$i*2+1]>>/$quoted/;
}
my ($sth, $errors) = execute_query($sql, $offset, $limit);
$sql =~ s/<<$split[$i*2+1]>>/$quoted/;
}
my ($sth, $errors) = execute_query($sql, $offset, $limit);
- my $total =
select_2_select_count_value
($sql) || 0;
+ my $total =
nb_rows
($sql) || 0;
unless ($sth) {
die "execute_query failed to return sth for report $report: $sql";
} else {
unless ($sth) {
die "execute_query failed to return sth for report $report: $sql";
} else {