https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15823
--- Comment #10 from Jonathan Druart <jonathan.dru...@bugs.koha-community.org> --- Comment on attachment 50707 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=50707 Bug 15823: Can still access patron discharge slip without having the syspref on Review of attachment 50707: --> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=15823&attachment=50707) ----------------------------------------------------------------- 10/ Yes I see the message, but the discharge has been requested anyway. You have to redirect to a 404 in case of opac-discharge.pl is called with the op parameter set. ::: members/discharge.pl @@ +55,5 @@ > + > +unless ( C4::Context->preference('useDischarge') ) { > + print > $input->redirect("/cgi-bin/koha/circ/circulation.pl?borrowernumber=$borrowernumber&nopermission=1"); > + exit; > +} else { The else is not needed. You are exiting the script in case of the pref is on. -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/