https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26506

Magnus Enger <mag...@libriotech.no> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #110552|0                           |1
        is obsolete|                            |

--- Comment #2 from Magnus Enger <mag...@libriotech.no> ---
Created attachment 110581
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=110581&action=edit
Bug 26506: Fix Koha::Account::pay if called when no user is logged-in

Currently, Koha::Account::pay will fail if no user is logged-in when it is
called.

In this case, this patch will use undef instead of 0 for $manager_id in order
to comply with the foreign key constraint on manager_id.

Signed-off-by: Magnus Enger <mag...@libriotech.no>
Biblibre and Libriotech have created a OPAC payment plugin that was
having problems because of this bug. Applying the fix in this patch
to a live server solved the problem.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://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/

Reply via email to