Bug 34478: Manual fix - add op - members/mancredit
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
f731a19676
commit
1244fffa9c
2 changed files with 3 additions and 2 deletions
|
@ -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' %]
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue