Bugzilla – Attachment 126082 Details for
Bug 28700
"Unblessed" method in Object.pm has blessed values for keys in some cases
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28700: Get from storage before log actions
Bug-28700-Get-from-storage-before-log-actions.patch (text/plain), 930 bytes, created by
Jonathan Druart
on 2021-10-12 09:45:13 UTC
(
hide
)
Description:
Bug 28700: Get from storage before log actions
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-10-12 09:45:13 UTC
Size:
930 bytes
patch
obsolete
>From cba08ae38d22307e9182df28501db09ec001a734 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 12 Oct 2021 11:44:12 +0200 >Subject: [PATCH] Bug 28700: Get from storage before log actions > >To make sure we have logging the values from DB >--- > C4/Log.pm | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/C4/Log.pm b/C4/Log.pm >index 5a9077de0dd..15752b815b1 100644 >--- a/C4/Log.pm >+++ b/C4/Log.pm >@@ -76,6 +76,9 @@ sub logaction { > $usernumber ||= 0; > $interface //= C4::Context->interface; > >+ $infos = $infos->get_from_storage >+ if ref($infos) !~ /HASH|ARRAY/ && $infos->isa('Koha::Object'); >+ > my $dbh = C4::Context->dbh; > my $sth=$dbh->prepare("Insert into action_logs (timestamp,user,module,action,object,info,interface) values (now(),?,?,?,?,?,?)"); > $sth->execute($usernumber,$modulename,$actionname,$objectnumber,$infos,$interface); >-- >2.25.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 28700
:
122770
|
122776
|
122797
| 126082 |
126181
|
126437
|
126902