https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26423 --- Comment #1 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 210377 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=210377&action=edit Bug 26423: Never render an empty patron link when HidePatronName is set When HidePatronName is enabled the cardnumber is shown in place of the patron's name, linked to their account. For patrons without a cardnumber the link was rendered with no text, so it was invisible and could not be clicked. Fall back to "A patron from <library>", still linked to the patron, in both patron-format.js ($patron_to_html) and patron-title.inc. The holds table passes the patron's home library so the label can be built even though the library is not embedded. To test: 1. Create a patron without a cardnumber (or clear one in the DB) and place a hold for them 2. Set HidePatronName to "Don't show" 3. Open the request page for the record (cgi-bin/koha/reserve/request.pl) 4. Without the patch the patron cell in the holds table is an empty link 5. Apply the patch, run `yarn js:build` and hard refresh 6. The cell now reads "A patron from <library>" and links to the patron 7. Confirm patrons with a cardnumber still show the cardnumber 8. Run: npx cypress run --spec t/cypress/integration/Patron/Format.ts Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.