Bugzilla – Attachment 178966 Details for
Bug 37901
Add ILL pseudonymization
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37901: UpdateStats when new ILL request is created
Bug-37901-UpdateStats-when-new-ILL-request-is-crea.patch (text/plain), 1.31 KB, created by
Pedro Amorim
on 2025-03-05 12:54:27 UTC
(
hide
)
Description:
Bug 37901: UpdateStats when new ILL request is created
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2025-03-05 12:54:27 UTC
Size:
1.31 KB
patch
obsolete
>From 64afc40ef2ac9e29da80ade7671bcc25de9d655e Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Mon, 3 Mar 2025 15:32:08 -0100 >Subject: [PATCH] Bug 37901: UpdateStats when new ILL request is created > >--- > Koha/ILL/Request.pm | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > >diff --git a/Koha/ILL/Request.pm b/Koha/ILL/Request.pm >index 48bfd6ba2d8..1167bfd7993 100644 >--- a/Koha/ILL/Request.pm >+++ b/Koha/ILL/Request.pm >@@ -2009,6 +2009,7 @@ possibly records the fact that something happened > sub store { > my ( $self, $attrs ) = @_; > >+ my $is_new_request = !$self->in_storage; > my %updated_columns = $self->_result->get_dirty_columns; > > my @holds; >@@ -2049,6 +2050,22 @@ sub store { > ); > } > >+ return $ret unless $is_new_request; >+ >+ C4::Stats::UpdateStats( >+ { >+ borrowernumber => $self->borrowernumber // undef, >+ branch => $self->branchcode, >+ categorycode => $self->patron ? $self->patron->categorycode : undef, >+ ccode => undef, >+ illrequest_id => $self->illrequest_id, >+ itemnumber => undef, >+ itemtype => undef, >+ location => undef, >+ type => 'ill_request', >+ } >+ ); >+ > return $ret; > } > >-- >2.39.5
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 37901
:
178356
|
178956
|
178957
|
178958
|
178959
|
178960
|
178961
|
178962
|
178963
|
178964
|
178965
|
178966
|
178967
|
178968
|
178980
|
178981
|
178982
|
178983
|
178984
|
178985
|
178986
|
178987
|
178988
|
178989
|
178990
|
178991
|
178992
|
181008
|
181009
|
181010
|
181011
|
181012
|
181013
|
181014
|
181015
|
181016
|
181017
|
181018
|
181019
|
181020