Bug 8128 - can't seem to run new sql reports
Reports cannot be saved because saved_sql.cache_expiry cannot be null. Fixed by setting default to 0 if a cache_expiry value is not passed into the function. Signed-off-by: Liz Rea <wizzyrea@gmail.com> passes t xt Verified original bug, patch resolves issue. Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
This commit is contained in:
parent
4533ff7dd3
commit
65129084ef
1 changed files with 1 additions and 0 deletions
|
@ -473,6 +473,7 @@ Returns id of the newly created report
|
|||
|
||||
sub save_report {
|
||||
my ( $borrowernumber, $sql, $name, $type, $notes, $cache_expiry, $public ) = @_;
|
||||
$cache_expiry ||= 0;
|
||||
my $dbh = C4::Context->dbh();
|
||||
$sql =~ s/(\s*\;\s*)$//; # removes trailing whitespace and /;/
|
||||
my $query =
|
||||
|
|
Loading…
Reference in a new issue