Lines 227-232
elsif ( $action eq 'update' ) {
Link Here
|
227 |
|
227 |
|
228 |
$borrower_changes{borrowernumber} = $borrowernumber; |
228 |
$borrower_changes{borrowernumber} = $borrowernumber; |
229 |
|
229 |
|
|
|
230 |
# FIXME update the following with |
231 |
# Koha::Patron::Modifications->search({ borrowernumber => $borrowernumber })->delete; |
232 |
# when bug 17091 will be pushed |
233 |
my $patron_modifications = Koha::Patron::Modifications->search({ borrowernumber => $borrowernumber }); |
234 |
while ( my $patron_modification = $patron_modifications->next ) { |
235 |
$patron_modification->delete; |
236 |
} |
237 |
|
230 |
my $m = Koha::Patron::Modification->new( \%borrower_changes )->store(); |
238 |
my $m = Koha::Patron::Modification->new( \%borrower_changes )->store(); |
231 |
|
239 |
|
232 |
$template->param( |
240 |
$template->param( |
233 |
- |
|
|