From f77c2bbb56fa84ac5251d34db4c915a3adad3c9a Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 12 Apr 2018 13:40:59 -0300 Subject: [PATCH] Bug 13655: Allow creation of organisations without entering userid See comment 1 of the bug report for defails of the issue. Test plan: Good luck (you will need to test all combinations (category type eq and ne 'I'), then quick edition and partial edit) --- members/memberentry.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/members/memberentry.pl b/members/memberentry.pl index a1703d0f40..1737f13172 100755 --- a/members/memberentry.pl +++ b/members/memberentry.pl @@ -279,7 +279,7 @@ $newdata{'lang'} = $input->param('lang') if defined($input->param('lang')) # builds default userid # userid input text may be empty or missing because of syspref BorrowerUnwantedField if ( ( defined $newdata{'userid'} && $newdata{'userid'} eq '' ) || $check_BorrowerUnwantedField =~ /userid/ && !defined $data{'userid'} ) { - if ( ( defined $newdata{'firstname'} ) && ( defined $newdata{'surname'} ) ) { + if ( ( defined $newdata{'firstname'} || $category_type eq 'I' ) && ( defined $newdata{'surname'} ) ) { # Full page edit, firstname and surname input zones are present $patron->firstname($newdata{firstname}); $patron->surname($newdata{surname}); -- 2.11.0