Bug 27144: Fix syntax error that prevents deleting patrons
To test: 1) In staff interface open up a patron record 2) Click More -> Delete, and then "Yes, delete" 3) Notice 500 error 4) Apply patch 5) Notice error is now gone when deleting Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Julian Maurice <julian.maurice@biblibre.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> (cherry picked from commit08c34b33e4) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> (cherry picked from commitccfd83fffa) Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
This commit is contained in:
parent
496aaf7760
commit
8ff0f3a598
|
|
@ -135,7 +135,7 @@ if ( $op eq 'delete_confirm' or $countissues > 0 or $debits or $is_guarantor ) {
|
|||
print $input->redirect("/cgi-bin/koha/members/members-home.pl");
|
||||
} catch {
|
||||
print $input->redirect("/cgi-bin/koha/members/moremember.pl?borrowernumber=$member&error=CANT_DELETE_ANONYMOUS_PATRON");
|
||||
}
|
||||
};
|
||||
# TODO Tell the user everything went ok
|
||||
exit 0; # Exit without error
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue