From 4f7215c569a3ea1adc6c09aadbe0302f13a1e2b9 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