From 26abf4c73d199f8f4309e96ab41e020fa5c09b47 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 4 May 2026 14:03:24 +0200 Subject: [PATCH] Bug 42521: (bug 39055 follow-up) Fix login from suggestion.pl If you try to login from suggestion/suggestion.pl you get a 500 DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::mysql::st execute failed: Unknown column 'login_op' in 'WHERE' at /kohadevbox/koha/Koha/Objects.pm line 401 Test plan: Logout hit /cgi-bin/koha/suggestion/suggestion.pl login => Without this patch you get a 500 => With this patch applied you get the suggestion list view Signed-off-by: Owen Leonard Signed-off-by: David Cook Signed-off-by: Lucas Gass --- suggestion/suggestion.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/suggestion/suggestion.pl b/suggestion/suggestion.pl index 3b61a17c53..10483baecc 100755 --- a/suggestion/suggestion.pl +++ b/suggestion/suggestion.pl @@ -115,7 +115,7 @@ $suggestion_only->{STATUS} = $suggestion_ref->{STATUS}; delete $$suggestion_ref{$_} foreach - qw( suggestedbyme op displayby tabcode notify filter_archived koha_login_context auth_forwarded_hash password userid ); + qw( suggestedbyme displayby tabcode notify filter_archived koha_login_context auth_forwarded_hash login_op login_password login_userid ); foreach my $key ( keys %$suggestion_ref ) { delete $suggestion_ref->{$key} if ( !$suggestion_ref->{$key} && ( $op eq 'else' ) );