From 320978997be204a0650475dca4db75e0dd36c273 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) Signed-off-by: Katrin Fischer Signed-off-by: Katrin Fischer Signed-off-by: Josef Moravec Signed-off-by: Nick Clemens --- members/memberentry.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/members/memberentry.pl b/members/memberentry.pl index 0a5e81b3de..6ed356ce71 100755 --- a/members/memberentry.pl +++ b/members/memberentry.pl @@ -277,7 +277,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.39.5