https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33276 Thibaud Guillot (thibaud_g) <thibaud.guillot@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #148958|0 |1 is obsolete| | --- Comment #8 from Thibaud Guillot (thibaud_g) <thibaud.guillot@biblibre.com> --- Created attachment 204864 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=204864&action=edit Bug 33276: Keep restricted serial location selectable The Location dropdown on subscription-add.pl is built from GetAuthorisedValues("MYAV"), which filters authorised values by the logged-in user's library. When a subscription's location is an AV restricted to another library it is absent from the list, so it shows as unselected and gets wiped on save. This adds Koha::AuthorisedValues->add_current_value, which re-appends the stored value (scoped to its category) flagged as restricted, and uses it in subscription-add.pl. Test plan: 1) Create an authorised value limited to library A 2) Log in as staff at library B, which cannot use that value 3) Edit a subscription whose location is that AV => without the patch the value is missing 4) Apply the patch, restart_all => the value is shown, selected, with a warning marker; saving keeps it 5) prove t/db_dependent/AuthorisedValues.t Sponsored-by: BibLibre -- You are receiving this mail because: You are watching all bug changes.