|
Lines 323-331
elsif ( $action eq 'update' ) {
Link Here
|
| 323 |
empty_mandatory_fields => \@empty_mandatory_fields, |
323 |
empty_mandatory_fields => \@empty_mandatory_fields, |
| 324 |
invalid_form_fields => $invalidformfields, |
324 |
invalid_form_fields => $invalidformfields, |
| 325 |
borrower => \%borrower, |
325 |
borrower => \%borrower, |
| 326 |
csrf_token => Koha::Token->new->generate_csrf({ |
|
|
| 327 |
session_id => scalar $cgi->cookie('CGISESSID'), |
| 328 |
}), |
| 329 |
); |
326 |
); |
| 330 |
$template->param( patron_attribute_classes => GeneratePatronAttributesForm( $borrowernumber, $attributes ) ); |
327 |
$template->param( patron_attribute_classes => GeneratePatronAttributesForm( $borrowernumber, $attributes ) ); |
| 331 |
|
328 |
|
|
Lines 371-379
elsif ( $action eq 'update' ) {
Link Here
|
| 371 |
nochanges => 1, |
368 |
nochanges => 1, |
| 372 |
borrower => $patron->unblessed, |
369 |
borrower => $patron->unblessed, |
| 373 |
patron_attribute_classes => GeneratePatronAttributesForm( $borrowernumber, $attributes ), |
370 |
patron_attribute_classes => GeneratePatronAttributesForm( $borrowernumber, $attributes ), |
| 374 |
csrf_token => Koha::Token->new->generate_csrf({ |
|
|
| 375 |
session_id => scalar $cgi->cookie('CGISESSID'), |
| 376 |
}), |
| 377 |
); |
371 |
); |
| 378 |
} |
372 |
} |
| 379 |
} |
373 |
} |
|
Lines 385-393
elsif ( $action eq 'edit' ) { #Display logged in borrower's data
Link Here
|
| 385 |
$template->param( |
379 |
$template->param( |
| 386 |
borrower => $borrower, |
380 |
borrower => $borrower, |
| 387 |
hidden => GetHiddenFields( $mandatory, 'edit' ), |
381 |
hidden => GetHiddenFields( $mandatory, 'edit' ), |
| 388 |
csrf_token => Koha::Token->new->generate_csrf({ |
|
|
| 389 |
session_id => scalar $cgi->cookie('CGISESSID'), |
| 390 |
}), |
| 391 |
); |
382 |
); |
| 392 |
|
383 |
|
| 393 |
if (C4::Context->preference('OPACpatronimages')) { |
384 |
if (C4::Context->preference('OPACpatronimages')) { |