Bugzilla – Attachment 53489 Details for
Bug 16941
Can not add new patron in staff client
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16941 - Can not add new patron in staff client
Bug-16941---Can-not-add-new-patron-in-staff-client.patch (text/plain), 1.32 KB, created by
Marc Véron
on 2016-07-19 14:51:15 UTC
(
hide
)
Description:
Bug 16941 - Can not add new patron in staff client
Filename:
MIME Type:
Creator:
Marc Véron
Created:
2016-07-19 14:51:15 UTC
Size:
1.32 KB
patch
obsolete
>From 0e7232aa8c94e0f06b8668364d07507b2d3b656b Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Marc=20V=C3=A9ron?= <veron@veron.ch> >Date: Thu, 14 Jul 2016 15:50:22 +0200 >Subject: [PATCH] Bug 16941 - Can not add new patron in staff client > >To reproduce: >- Go to staff client Home > Patron >- New patron >- Choose a category and fill form, submit >Result: Form reloads, patron data are not saved. > >To test: >- Apply patch >- Repeat steps above >- Verify that patron data are saved and the new patron's > detail page displays >- Try to enter a duplicate patron (e.g. same surname, firstname > and birthday as above) >- Verify that a duplicate message appears >--- > members/memberentry.pl | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/members/memberentry.pl b/members/memberentry.pl >index 4785691..0987168 100755 >--- a/members/memberentry.pl >+++ b/members/memberentry.pl >@@ -228,9 +228,10 @@ if ( ( $op eq 'insert' ) and !$nodouble ) { > $conditions->{firstname} = $newdata{firstname} if $newdata{firstname}; > $conditions->{dateofbirth} = $newdata{dateofbirth} if $newdata{dateofbirth}; > } >+ $nodouble = 1; > my $patrons = Koha::Patrons->search($conditions); > if ( $patrons->count > 0) { >- $nodouble = 1; >+ $nodouble = 0; > $check_member = $patrons->next->borrowernumber; > } > } >-- >1.7.10.4
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 16941
:
53489
|
53492
|
53560