https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42584
Pedro Amorim (ammopt) <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Failed QA CC| |[email protected] | |k --- Comment #14 from Pedro Amorim (ammopt) <[email protected]> --- Hi all, The navbar content filters by the staff user's home library (logged_in_user.branchcode) instead of the library they're logged in at. The module home page blocks (IntranetmainUserblock, StaffPatronsHome, StaffCataloguingHome, etc.) all use Branches.GetLoggedInBranchcode, which follows 'Set library', and since the navbar is shown on every page alongside those blocks it should likely behave the same way. To reproduce: 1) Go to http://localhost:8081/cgi-bin/koha/tools/additional-contents.pl?op=add_form&category=html_customizations 2) Add an entry with 'Display location' 'StaffNavbarExtraContent', 'Library' 'Midway', content MIDWAY. Save. 3) Add another one with 'Library' 'Centerville', content CENTERVILLE. Save. 4) Click the library name in the top right, then 'Set library', and pick 'Midway' 5) The navbar shows CENTERVILLE, but it should show MIDWAY 6) For comparison, do the same with 'IntranetmainUserblock' and go to http://localhost:8081/cgi-bin/koha/mainpage.pl. It correctly shows MIDWAY. Swapping 'logged_in_user.branchcode || default_branch' for 'Branches.GetLoggedInBranchcode' in header.inc should fix it. -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected] website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
