On 8 December 2011 08:27, Tomas Cohen Arazi <tomascohen@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