Bugzilla – Attachment 53492 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]
[SIGNED-OFF]Bug 16941: Can not add new patron in staff client
SIGNED-OFFBug-16941-Can-not-add-new-patron-in-staf.patch (text/plain), 1.41 KB, created by
Héctor Eduardo Castro Avalos
on 2016-07-19 15:27:03 UTC
(
hide
)
Description:
[SIGNED-OFF]Bug 16941: Can not add new patron in staff client
Filename:
MIME Type:
Creator:
Héctor Eduardo Castro Avalos
Created:
2016-07-19 15:27:03 UTC
Size:
1.41 KB
patch
obsolete
>From ad08dbfc806e88f3410d37f09a7580d87cc49adb 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] [SIGNED-OFF]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 > >Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com> >Works as advertised >--- > 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