Lines 178-184
if ( $op eq 'modify' or $op eq 'save' or $op eq 'duplicate' ) {
Link Here
|
178 |
} |
178 |
} |
179 |
|
179 |
|
180 |
my $categorycode = $input->param('categorycode') || $borrower_data->{'categorycode'}; |
180 |
my $categorycode = $input->param('categorycode') || $borrower_data->{'categorycode'}; |
181 |
my $category = Koha::Patron::Categories->find($categorycode); |
181 |
my $category = $categorycode ? Koha::Patron::Categories->find($categorycode) : $guarantor->category; |
182 |
$template->param( patron_category => $category ); |
182 |
$template->param( patron_category => $category ); |
183 |
|
183 |
|
184 |
# if a add or modify is requested => check validity of data. |
184 |
# if a add or modify is requested => check validity of data. |
185 |
- |
|
|