From 1c0702c76e50173289a0ee340a9c5f190515d9c3 Mon Sep 17 00:00:00 2001 From: Paul Poulain 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) Signed-off-by: Chris Cormack --- C4/Auth.pm | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 57f4d2cd99..7a6ec93143 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -137,8 +137,8 @@ Output.pm module. =cut my $SEARCH_HISTORY_INSERT_SQL =<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( -- 2.39.5