Bugzilla – Attachment 5297 Details for
Bug 5630
CAS improvements
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch follow-up 2
0001-Bug-5630-follow-up.patch (text/plain), 2.17 KB, created by
Paul Poulain
on 2011-09-02 16:22:00 UTC
(
hide
)
Description:
proposed patch follow-up 2
Filename:
MIME Type:
Creator:
Paul Poulain
Created:
2011-09-02 16:22:00 UTC
Size:
2.17 KB
patch
obsolete
>From d05ae0b2bdebeb6aff51eca762b8e579304de808 Mon Sep 17 00:00:00 2001 >From: Paul Poulain <paul.poulain@biblibre.com> >Date: Fri, 2 Sep 2011 18:12:10 +0200 >Subject: [PATCH] Bug 5630, follow-up > >Fixes chris comment 28, that was a consequence of Marcel comment 27 >Recent error >[Thu Sep 01 14:22:45 2011] [error] [client 192.87.126.61] [Thu Sep 1 14:22:45 >2011] opac-MARCdetail.pl: DBD::mysql::st execute failed: Unknown column >'limit_desc' in 'field list' at /usr/share/koha/testclone/C4/Auth.pm line 276. >Seems to come from this commit 9a3950f673c28688a2ead6514c3320e34ec0cc4c (5630 >CAS Improvements) >--- > C4/Auth.pm | 14 +++++++++----- > 1 files changed, 9 insertions(+), 5 deletions(-) > >diff --git a/C4/Auth.pm b/C4/Auth.pm >index b03fb36..d699d96 100644 >--- a/C4/Auth.pm >+++ b/C4/Auth.pm >@@ -137,8 +137,8 @@ Output.pm module. > =cut > > my $SEARCH_HISTORY_INSERT_SQL =<<EOQ; >-INSERT INTO search_history(userid, sessionid, query_desc, query_cgi, limit_desc, limit_cgi, total, time ) >-VALUES ( ?, ?, ?, ?, ?, ?, ?, FROM_UNIXTIME(?)) >+INSERT INTO search_history(userid, sessionid, query_desc, query_cgi, total, time ) >+VALUES ( ?, ?, ?, ?, ?, FROM_UNIXTIME(?)) > EOQ > sub get_template_and_user { > my $in = shift; >@@ -271,9 +271,13 @@ sub get_template_and_user { > my @recentSearches = @{thaw($searchcookie) || []}; > if (@recentSearches) { > my $sth = $dbh->prepare($SEARCH_HISTORY_INSERT_SQL); >- >- $sth->execute( $borrowernumber, $in->{'query'}->cookie("CGISESSID"), $_->{'query_desc'}, $_->{'query_cgi'}, $_->{'limit_desc'}, $_->{'limit_cgi'}, $_->{'total'}, $_->{'time'}, ) >- foreach @recentSearches; >+ $sth->execute( $borrowernumber, >+ $in->{'query'}->cookie("CGISESSID"), >+ $_->{'query_desc'}, >+ $_->{'query_cgi'}, >+ $_->{'total'}, >+ $_->{'time'}, >+ ) foreach @recentSearches; > > # And then, delete the cookie's content > my $newsearchcookie = $in->{'query'}->cookie( >-- >1.7.4.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 5630
:
3549
|
3550
|
3551
|
3552
|
3553
|
3813
|
4716
|
5219
| 5297