From 6f5a9ee48030664aafc3324a44a7c627283a4738 Mon Sep 17 00:00:00 2001 From: Paul POULAIN Date: Wed, 24 Oct 2007 13:31:40 -0500 Subject: [PATCH] IndependantBranches behaviour fix if IndependantBranches is set, then the user can't choose it's branch, it's automatically affected to it's own branch. This fix removes the branch list & choose the branch automatically from the login Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- C4/Auth.pm | 5 +++-- .../intranet-tmpl/prog/en/modules/auth.tmpl | 16 +++++++++------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 7310f7aefb..31eee8841d 100755 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -254,7 +254,8 @@ sub get_template_and_user { virtualshelves => C4::Context->preference("virtualshelves"), LibraryName => C4::Context->preference("LibraryName"), KohaAdminEmailAddress => "" . C4::Context->preference("KohaAdminEmailAddress"), - IntranetmainUserblock => C4::Context->preference("IntranetmainUserblock"), + IntranetmainUserblock => C4::Context->preference("IntranetmainUserblock"), + IndependantBranches => C4::Context->preference("IndependantBranches"), ); } else { @@ -721,7 +722,7 @@ sub checkauth { IntranetNav => C4::Context->preference("IntranetNav"), intranetuserjs => C4::Context->preference("intranetuserjs"), TemplateEncoding => C4::Context->preference("TemplateEncoding"), - + IndependantBranches => C4::Context->preference("IndependantBranches"), ); $template->param( loginprompt => 1 ) unless $info{'nopermission'}; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tmpl index 30354db0e7..348062e9d6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tmpl @@ -42,13 +42,15 @@

-

-

+ +

+

+

-- 2.39.5