[Koha-bugs] [Bug 18150] CanItemBeReserved doesn't work with ( IndependentBranches AND ! canreservefromotherbranches)

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Feb 22 10:33:12 CET 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18150

--- Comment #2 from Nicolas Legrand <nicolas.legrand at bulac.fr> ---
Created attachment 60542
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=60542&action=edit
Bug 18150 - CanItemBeReserved doesn't work with (IndependentBranches AND !
canreservefromotherbranches)

The variable $item used to be a hash, but at the end of the function,
it's a Koha object. As $item->{homebranch} doesn't yield anything and
should be $item->homebranch. It prevents people using different
branches without holds between branches from placing a hold on an item
they should be able to place hold on.

Test plan:

1. Before patch

  a. with IndependantBranches off
  b. try to place hold on an item you should be able to place hold on
  c. it should work
  d. put IndependantBranches on and canreservefromotherbranches off
  e. shouldn't work

2. after patches redo steps from (1) and everything should be working
fine.

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


More information about the Koha-bugs mailing list