Lines 283-289
if ( ( defined $newdata{'userid'} && $newdata{'userid'} eq '' ) || $check_Borrow
Link Here
|
283 |
$patron->surname($newdata{surname}); |
283 |
$patron->surname($newdata{surname}); |
284 |
$newdata{'userid'} = $patron->generate_userid; |
284 |
$newdata{'userid'} = $patron->generate_userid; |
285 |
} |
285 |
} |
286 |
elsif ( ( defined $data{'firstname'} ) && ( defined $data{'surname'} ) ) { |
286 |
elsif ( ( defined $data{'firstname'} || $category_type eq 'I' ) && ( defined $data{'surname'} ) ) { |
287 |
# Partial page edit (access through "Details"/"Library details" tab), firstname and surname input zones are not used |
287 |
# Partial page edit (access through "Details"/"Library details" tab), firstname and surname input zones are not used |
288 |
# Still, if the userid field is erased, we can create a new userid with available firstname and surname |
288 |
# Still, if the userid field is erased, we can create a new userid with available firstname and surname |
289 |
# FIXME clean thiscode newdata vs data is very confusing |
289 |
# FIXME clean thiscode newdata vs data is very confusing |
290 |
- |
|
|