http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6151
--- Comment #2 from Ian Walls <ian.wa...@bywatersolutions.com> 2011-12-01 19:43:54 UTC --- Better solution: A new system preference, AllowReturnToBranch, and a subroutine in C4/Circulation to leverage it. Possible syspref values: homebranch holdingbranch (which would correspond to the issuing branch) homebranch OR holdingbranch <== default if IndependantBranches is ON anywhere <== default if IndependantBranches is OFF (and for fresh installs) New C4::Circulation::CanReturnToBranch subroutine Takes in $item object and current branch Returns two values: 1 if return is allowed or 0 if return is forbidden, and the allowed return branch (defaults to homebranch is option is 'homebranch or holdingbranch') Change the conditional in AddReturn to consult this subroutine instead of comparing $branch to $hbr and looking for IndependantBranches syspref. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug. You are watching all bug changes. _______________________________________________ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/