Bugzilla – Attachment 71201 Details for
Bug 19989
opac-memberentry.pl has a FIXME that can be fixed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19989: Fix the FIXME so that new requests replace old request
Bug-19989-Fix-the-FIXME-so-that-new-requests-repla.patch (text/plain), 1.56 KB, created by
Katrin Fischer
on 2018-02-04 15:26:25 UTC
(
hide
)
Description:
Bug 19989: Fix the FIXME so that new requests replace old request
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2018-02-04 15:26:25 UTC
Size:
1.56 KB
patch
obsolete
>From 96f690efd4410aeb34b18cef4dd1eaccf5978db8 Mon Sep 17 00:00:00 2001 >From: Zoe Bennett <zoebennett1308@gmail.com> >Date: Wed, 17 Jan 2018 04:01:01 +0000 >Subject: [PATCH] Bug 19989: Fix the FIXME so that new requests replace old > request > >Test: >1) Make a change to the user in the OPAC >2) In the staff client make sure this is the only request > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > opac/opac-memberentry.pl | 8 +------- > 1 file changed, 1 insertion(+), 7 deletions(-) > >diff --git a/opac/opac-memberentry.pl b/opac/opac-memberentry.pl >index 12eebbb813..c680d7d07a 100755 >--- a/opac/opac-memberentry.pl >+++ b/opac/opac-memberentry.pl >@@ -272,13 +272,7 @@ elsif ( $action eq 'update' ) { > $borrower_changes{borrowernumber} = $borrowernumber; > $borrower_changes{extended_attributes} = to_json($extended_attributes_changes); > >- # FIXME update the following with >- # Koha::Patron::Modifications->search({ borrowernumber => $borrowernumber })->delete; >- # when bug 17091 will be pushed >- my $patron_modifications = Koha::Patron::Modifications->search({ borrowernumber => $borrowernumber }); >- while ( my $patron_modification = $patron_modifications->next ) { >- $patron_modification->delete; >- } >+ my $patron_modifications = Koha::Patron::Modifications->search({ borrowernumber => $borrowernumber })->delete; > > my $m = Koha::Patron::Modification->new( \%borrower_changes )->store(); > >-- >2.14.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 19989
:
70600
|
70616
| 71201