From 6496f384c9b2dab5cc1f88a439750c8b117cde0a Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 10 Jun 2025 18:42:54 +0000 Subject: [PATCH] Bug 40114: Can't select new library when editing a desk This patch fixes selection of a library when editing a desk in Administration. The form should provide all libraries as options, not just the currently selected one. To test, apply the patch and go to Administration -> Desks. - If necessary, create a new desk. - Edit the desk. The form should load with the correct library prefilled in the - [% FOREACH branch IN branches %] - [% IF desk %] - [% IF (desk.branchcode == branch.branchcode) %] - - [% END %] - [% ELSE %] - [% IF (Branches.GetLoggedInBranchcode == branch.branchcode) %] - - [% END %] - - [% END %] + [% IF desk %] + [% PROCESS options_for_libraries libraries => Branches.all( selected => desk.branchcode ) %] + [% ELSE %] + [% PROCESS options_for_libraries libraries => Branches.all() %] [% END %] -- 2.39.5