Bug 18858: Prevent warn when deleting a borrower debarment
To test: 1) Look at intranet log 2) Go to delete a debarment on a borrower 3) Notice warn 4) Apply patch 5) Add a new debarment 6) Delete this debarment 7) Notice warn is gone Sponsored-by: Catalyst IT Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> (cherry picked from commit7ed66a6c8a) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> (cherry picked from commit7d2bd04820) Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
This commit is contained in:
parent
605f186646
commit
181a8d85b2
|
|
@ -33,7 +33,7 @@ my $borrowernumber = $cgi->param('borrowernumber');
|
|||
my $action = $cgi->param('action');
|
||||
|
||||
if ( $action eq 'del' ) {
|
||||
DelDebarment( $cgi->param('borrower_debarment_id') );
|
||||
DelDebarment( scalar $cgi->param('borrower_debarment_id') );
|
||||
} elsif ( $action eq 'add' ) {
|
||||
my $expiration = $cgi->param('expiration');
|
||||
if ($expiration) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue