[Koha-bugs] [Bug 25046] C4::Utils::DataTables::Members does not SELECT othernames from borrowers table
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Apr 2 20:42:06 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25046
--- Comment #1 from Andreas Roussos <a.roussos at dataly.gr> ---
Created attachment 102304
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=102304&action=edit
Bug 25046: Include borrowers.othernames in SELECT statement
In C4/Utils/DataTables/Members.pm, the SELECT statement that fetches
patron data from the database does not include borrowers.othernames
in the field list. As a consequence, when the output is in the form
of a DataTable, the Template Toolkit files that refer to .othernames
(such as the patron-title.inc include) won't display the information
from the 'Other name' input field if that field has been filled in.
This patch fixes that.
Test plan:
0) Have a few patrons with some data in the 'Other name' field.
1) Perform a generic search in Home > Patrons to ensure you will get
a DataTable with results.
2) Observe that the 'Name' column does not include 'Other name' info.
3) Apply the patch, and restart Plack if necessary.
4) Repeat your search: this time you should see the information from
the 'Other name' field, it will be next to the patron's First name
and within parentheses.
Sponsored-by: Eugenides Foundation Library
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list