|
Lines 331-339
elsif ( $action eq 'update' ) {
Link Here
|
| 331 |
empty_mandatory_fields => \@empty_mandatory_fields, |
331 |
empty_mandatory_fields => \@empty_mandatory_fields, |
| 332 |
invalid_form_fields => $invalidformfields, |
332 |
invalid_form_fields => $invalidformfields, |
| 333 |
borrower => \%borrower, |
333 |
borrower => \%borrower, |
| 334 |
csrf_token => Koha::Token->new->generate_csrf({ |
|
|
| 335 |
session_id => scalar $cgi->cookie('CGISESSID'), |
| 336 |
}), |
| 337 |
); |
334 |
); |
| 338 |
$template->param( patron_attribute_classes => GeneratePatronAttributesForm( $borrowernumber, $attributes ) ); |
335 |
$template->param( patron_attribute_classes => GeneratePatronAttributesForm( $borrowernumber, $attributes ) ); |
| 339 |
|
336 |
|
|
Lines 379-387
elsif ( $action eq 'update' ) {
Link Here
|
| 379 |
nochanges => 1, |
376 |
nochanges => 1, |
| 380 |
borrower => $patron->unblessed, |
377 |
borrower => $patron->unblessed, |
| 381 |
patron_attribute_classes => GeneratePatronAttributesForm( $borrowernumber, $attributes ), |
378 |
patron_attribute_classes => GeneratePatronAttributesForm( $borrowernumber, $attributes ), |
| 382 |
csrf_token => Koha::Token->new->generate_csrf({ |
|
|
| 383 |
session_id => scalar $cgi->cookie('CGISESSID'), |
| 384 |
}), |
| 385 |
); |
379 |
); |
| 386 |
} |
380 |
} |
| 387 |
} |
381 |
} |
|
Lines 393-401
elsif ( $action eq 'edit' ) { #Display logged in borrower's data
Link Here
|
| 393 |
$template->param( |
387 |
$template->param( |
| 394 |
borrower => $borrower, |
388 |
borrower => $borrower, |
| 395 |
hidden => GetHiddenFields( $mandatory, 'edit' ), |
389 |
hidden => GetHiddenFields( $mandatory, 'edit' ), |
| 396 |
csrf_token => Koha::Token->new->generate_csrf({ |
|
|
| 397 |
session_id => scalar $cgi->cookie('CGISESSID'), |
| 398 |
}), |
| 399 |
); |
390 |
); |
| 400 |
|
391 |
|
| 401 |
if (C4::Context->preference('OPACpatronimages')) { |
392 |
if (C4::Context->preference('OPACpatronimages')) { |