[Koha-bugs] [Bug 9943] Pay fines page "Pay selected" button give invalid amount when nothing is selected

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Mar 28 08:15:42 CET 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9943

--- Comment #1 from Pongtawat <pongtawat.c at gmail.com> ---
The problem is that when nothing is selected, &selected= parameter is passed
with empty string. The condition in paycollect.pl will miss it. It might be
simply fixed by update that condition to use "defined" function.

--- paycollect.pl    2013-03-28 14:10:16.518906138 +0700
+++ new/paycollect.pl    2013-03-28 14:11:12.994905576 +0700
@@ -86,7 +86,7 @@
         notify_id         => $notify_id,
         notify_level      => $notify_level,
     );
-} elsif ($select_lines) {
+} elsif (defined $select_lines) {
     $total_due = $input->param('amt');
     $template->param(
         selected_accts => $select_lines

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list