diff --git a/C4/Auth.pm b/C4/Auth.pm index b99b70b9a9..55722bda78 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -1078,8 +1078,9 @@ sub checkauth { $branchcode = $query->param('branch'); $branchname = GetBranchName($branchcode); } - my $branches = GetBranches(); - if ( C4::Context->boolean_preference('IndependentBranches') && C4::Context->boolean_preference('Autolocation') ) { + + my $branches = { map { $_->branchcode => $_->unblessed } Koha::Libraries->search }; + if ( C4::Context->boolean_preference('AutoLocation') ) { # we have to check they are coming from the right ip range my $domain = $branches->{$branchcode}->{'branchip'}; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt index 411c563a1d..070a0f1843 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt @@ -52,17 +52,17 @@
-[% IF ( AutoLocation ) %][% ELSE %] -[% IF ( IndependentBranches ) %][% ELSE %] -- -
[% END %] - [% END %] +[% UNLESS IndependentBranches %] ++ + +
+[% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation-home.tt index fdd361fbb1..dd99860a69 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation-home.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation-home.tt @@ -24,7 +24,7 @@ [% IF ( display_transfer ) %]