Lines 531-536
if ((!$nok) and $nodouble and ($op eq 'insert' or $op eq 'save')){
Link Here
|
531 |
$newdata{debarredcomment} = $newdata{debarred_comment}; |
531 |
$newdata{debarredcomment} = $newdata{debarred_comment}; |
532 |
delete $newdata{debarred_comment}; |
532 |
delete $newdata{debarred_comment}; |
533 |
delete $newdata{password2}; |
533 |
delete $newdata{password2}; |
|
|
534 |
|
535 |
#If changing to a patron category whose category type is not child then remove guarantor id |
536 |
my $borrowercategory = Koha::Patron::Categories->find($newdata{categorycode}); |
537 |
if (( $borrowercategory->category_type ne 'C' ) && ( $borrowercategory->category_type ne 'P' )) { |
538 |
$newdata{guarantorid} = ''; |
539 |
} |
540 |
|
534 |
$patron->set(\%newdata)->store if scalar(keys %newdata) > 1; # bug 4508 - avoid crash if we're not |
541 |
$patron->set(\%newdata)->store if scalar(keys %newdata) > 1; # bug 4508 - avoid crash if we're not |
535 |
# updating any columns in the borrowers table, |
542 |
# updating any columns in the borrowers table, |
536 |
# which can happen if we're only editing the |
543 |
# which can happen if we're only editing the |
537 |
- |
|
|