https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44228 --- Comment #5 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 212444 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212444&action=edit Bug 44228: (follow-up) Disable Create SIP account if patron already has one SIP accounts have a unique login_id, so a patron whose userid is already used by a SIP account cannot have another one. This patch adds Koha::Patron->sip_account, which returns the Koha::SIP2::Account whose login_id matches the patron's userid, and uses it to disable the "Create SIP account" option with the tooltip "Patron already has a SIP account". Test plan: 1. Apply patch, restart_all 2. prove t/db_dependent/Koha/Patron.t 3. Open a patron whose userid matches an existing SIP account login_id (in KTD: koha_sip, matching the term1 account) 4. Click More, confirm Create SIP account is disabled with the tooltip "Patron already has a SIP account" 5. Open a patron with a userid that has no SIP account, confirm the option is still enabled and works as before Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Mary Teal <mteal@greenvillelibrary.org> -- You are receiving this mail because: You are watching all bug changes.