Bugzilla – Attachment 52931 Details for
Bug 14642
Add logging of hold modifications
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14642: Log on ::delete
Bug-14642-Log-on-delete.patch (text/plain), 801 bytes, created by
Tomás Cohen Arazi (tcohen)
on 2016-06-28 14:27:37 UTC
(
hide
)
Description:
Bug 14642: Log on ::delete
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2016-06-28 14:27:37 UTC
Size:
801 bytes
patch
obsolete
>From 507ce7618985ba9f88db0c80c1aaf86bff9af9d8 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Tue, 28 Jun 2016 10:03:16 -0300 >Subject: [PATCH] Bug 14642: Log on ::delete > >--- > Koha/Hold.pm | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) > >diff --git a/Koha/Hold.pm b/Koha/Hold.pm >index 60a121a..3cc8440 100644 >--- a/Koha/Hold.pm >+++ b/Koha/Hold.pm >@@ -90,6 +90,21 @@ sub resume { > return $self; > } > >+=head3 delete >+ >+$hold->delete(); >+ >+=cut >+ >+sub delete { >+ my ( $self ) = @_; >+ >+ logaction( 'HOLDS', 'DELETE', $self->reserve_id, Dumper($self->unblessed) ) >+ if C4::Context->preference('HoldsLog'); >+ >+ return $self->SUPER::delete($self); >+} >+ > =head3 waiting_expires_on > > Returns a DateTime for the date a waiting holds expires on. >-- >2.9.0
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 14642
:
52824
|
52825
|
52848
|
52931
|
53070
|
53196
|
53466
|
53734
|
54177
|
54179
|
54180
|
54181
|
54182
|
54183