[Koha-bugs] [Bug 9575] Serious Holds Problem with IndependantBranches

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Mar 12 11:58:55 CET 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9575

Jonathan Druart <jonathan.druart at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jonathan.druart at biblibre.co
                   |                            |m

--- Comment #3 from Jonathan Druart <jonathan.druart at biblibre.com> ---
QA comment:

Why do you modify 2 routines when you can just modify the pl file? To me,
Getbranches($foo, $branch) is not consistent.

I think you can do something like
if ( C4::Context->preference('IndependantBranches') ) {
  $reserve{'branchloop'} = GetBranchDetail($res->{'branchcode'});
} else {
  $reserve{'branchloop'} = GetBranchesLoop($res->{'branchcode'});
}

Feel free to discuss if you disagree :)

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list