Bug 34478: Manual fix - add op - members/mancredit

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Kyle Hall 2024-02-01 11:13:36 -05:00 committed by Jonathan Druart
parent f731a19676
commit 1244fffa9c
Signed by: jonathan.druart
GPG key ID: A085E712BEF0E0F0
2 changed files with 3 additions and 2 deletions

View file

@ -66,6 +66,7 @@
<div class="tab-content">
<div role="tabpanel" class="tab-pane active">
<form action="/cgi-bin/koha/members/mancredit.pl" method="post" id="mancredit">
<input type="hidden" name="op" value="cud-add" />
<input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber | html %]" />
[% INCLUDE 'csrf-token.inc' %]

View file

@ -66,8 +66,8 @@ output_and_exit_if_error(
my $library_id =
C4::Context->userenv ? C4::Context->userenv->{'branch'} : undef;
my $add = $input->param('cud-add');
if ($add) {
my $op = $input->param('op') // q{};
if ( $op eq 'cud-add' ) {
# Note: If the logged in user is not allowed to see this patron an invoice can be forced
# Here we are trusting librarians not to hack the system