Bug 24201: (QA follow-up) Only display desks picker if enabled
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 4 Aug 2020 11:28:44 +0000 (12:28 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 7 Aug 2020 14:54:40 +0000 (16:54 +0200)
I missed a case on the authentication page with the prior patch of the
same name.

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt

index b3650f8..699dd10 100644 (file)
@@ -83,7 +83,8 @@
             [% END %]
         </select>
     </p>
-    [% IF Desks.all %]
+
+    [% IF Koha.Preference('UseCirculationDesks') && Desks.all %]
         <p>
             <label for="desk">Desk:</label>
             <select name="desk_id" id="desk_id" class="input" tabindex="3">
@@ -93,9 +94,9 @@
                     [% END %]
             </select>
         </p>
+    [% END %]
 </fieldset>
 [% END %]
-[% END %]
 
 <!-- <p><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="3" />Remember me</label></p> -->