projects
/
koha-ffzg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02b5091
)
(bug #2862) improve sql reports
author
Nahuel ANGELINETTI
<nahuel.angelinetti@biblibre.com>
Fri, 12 Dec 2008 10:56:19 +0000
(11:56 +0100)
committer
Galen Charlton
<galen.charlton@liblime.com>
Sat, 4 Apr 2009 00:53:06 +0000
(19:53 -0500)
Clear all non-alphanum chars at the end of an sql query.
Use ESCAPE=HTML to escape double quotes in csv export
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
C4/Reports/Guided.pm
patch
|
blob
|
history
diff --git
a/C4/Reports/Guided.pm
b/C4/Reports/Guided.pm
index
ce5876e
..
5df6c2a
100644
(file)
--- a/
C4/Reports/Guided.pm
+++ b/
C4/Reports/Guided.pm
@@
-483,6
+483,7
@@
Given some sql and a name this will saved it so that it can resued
sub save_report {
my ( $sql, $name, $type, $notes ) = @_;
my $dbh = C4::Context->dbh();
+ $sql =~ s/(\W*)$//;
my $query =
"INSERT INTO saved_sql (borrowernumber,date_created,last_modified,savedsql,report_name,type,notes) VALUES (?,now(),now(),?,?,?,?)";
my $sth = $dbh->prepare($query);