Bugzilla – Attachment 153768 Details for
Bug 33940
Move get_cardnumber_length and checkcardnumber to Koha
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33940: Fix selfreg
Bug-33940-Fix-selfreg.patch (text/plain), 1.11 KB, created by
Jonathan Druart
on 2023-07-21 09:56:13 UTC
(
hide
)
Description:
Bug 33940: Fix selfreg
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-07-21 09:56:13 UTC
Size:
1.11 KB
patch
obsolete
>From 7bf84bc20f9576044a70770090909ad2635e65a0 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 21 Jul 2023 11:55:52 +0200 >Subject: [PATCH] Bug 33940: Fix selfreg > >please squash with first patch >--- > opac/opac-memberentry.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/opac/opac-memberentry.pl b/opac/opac-memberentry.pl >index 47d321d22c7..bc922a9ee04 100755 >--- a/opac/opac-memberentry.pl >+++ b/opac/opac-memberentry.pl >@@ -138,7 +138,7 @@ if ( $action eq 'create' ) { > # No point in checking the cardnumber if it's missing and mandatory, it'll just generate a > # spurious length warning. > my $patron = Koha::Patrons->find($borrower{borrowernumber}); >- $is_cardnumber_valid = Koha::Policy::Patrons::Cardnumber($borrower{cardnumber}, $patron); >+ $is_cardnumber_valid = Koha::Policy::Patrons::Cardnumber->is_valid($borrower{cardnumber}, $patron); > unless ($is_cardnumber_valid) { > for my $message ( @{ $is_cardnumber_valid->messages } ) { > if ( $message eq 'already_exists' ) { >-- >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 33940
:
152109
|
153758
|
153759
|
153763
|
153764
|
153766
|
153768
|
153769
|
153770
|
153771
|
153772
|
153773
|
155687
|
155688
|
155689