Removing the library select entirely results in a JS failure for desk
selection when independant branches is enabled and the user does not
have permission to select a library.
This patch adds a hidden select element so we can still grab the current
branch from the selection.
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
</select></li>
</ol>
</fieldset>
+[% ELSE %]
+<select name="branch" id="branch" style="visibility:hidden;">
+ [% PROCESS options_for_libraries libraries => Branches.all( selected => branch ) %]
+</select>
[% END %]
+
[% IF Koha.Preference('UseCirculationDesks') && Desks.all %]
<fieldset class="rows">
<legend>Set desk</legend>