Skip to content

CIRC-2339 Fix borrower preferredFirstName fallback logic#1629

Open
roman-barannyk wants to merge 3 commits intomasterfrom
CIRC-2339
Open

CIRC-2339 Fix borrower preferredFirstName fallback logic#1629
roman-barannyk wants to merge 3 commits intomasterfrom
CIRC-2339

Conversation

@roman-barannyk
Copy link
Contributor

Purpose

Description

Steps to reproduce:

Set up a Hold slip template with both tokens - borrower.preferredFirstName and requester.preferredFirstName

Check out an item to a patron that only has “First name” and no “Preferred first name”

Place a request from a different patron that only has “First name” and no “Preferred first name”

Check in an item

Print a slip

Expected result:

borrower.preferredFirstName and requester.preferredFirstName behave in the same way - when “Preferred first name” is not available, it falls back to the “First name”

Actual result:

requester.preferredFirstName behaves as expected, but

borrower.preferredFirstName is empty - it doesn’t fall back to the “First name“

Resolves: CIRC-2339

@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 5, 2025

@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants