[Koha-devel] on Bug 6802
Chris Cormack
chris at bigballofwax.co.nz
Wed Dec 7 20:39:42 CET 2011
On 8 December 2011 08:27, Tomas Cohen Arazi <tomascohen at gmail.com> wrote:
> Hi, I've just heard of bug 6802, we are having some issues with that
> as it is holding a University from finishing its Koha official
> deployment.
> I'm willing to work on that, and would like to ask if something like
> this would be a good solution: somehow wrapping the "saveitem" block
> within
>
> if (C4::Context->preference("IndependantBranches")) {
> my $userenv = C4::Context->userenv();
> unless (($userenv->{'flags'} == 1) or ($userenv->{'branch'} eq
> $item->{'homebranch'})) {
> # ERROR HANDLING CODE HERE
>
>
> }
> }
>
> might or not work. Hope we start a good discussion on this...
>
That should work, I recommend giving it a try and throwing up a patch
for others to test
Chris
More information about the Koha-devel
mailing list