Bug 35478 - When selecting a patron for a suggestion we have undefined fields
Summary: When selecting a patron for a suggestion we have undefined fields
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Acquisitions (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-04 13:05 UTC by Nick Clemens (kidclamp)
Modified: 2023-12-04 13:05 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Clemens (kidclamp) 2023-12-04 13:05:32 UTC
In the code in suggestion.tt:
1301         function select_suggester(borrowernumber, borrower) {
1302             var suggested = '<input type="hidden" id="suggestedby" name="suggestedby" value="' + borrowernumber + '" />';
1303             suggested += '<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=' + borrowernumber + '">';
1304             suggested += borrower.surname + ', ' + borrower.firstname + ' (' + borrower.cardnumber + ')';
1305             suggested += '</a> ';
1306             suggested += borrower.branchname + ' (' + borrower.category_description + ')';
1307             $("#tdsuggestedby").html(suggested);
1308             return 0;
1309         }


The borrower json in the search doesn't have branchcode or category description