Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin
Nick Clemens acb0fdb688 Bug 28503: Compare item homebranch to patron branch when hold policy set to 'from_home_library'
This fixes an issue in the way we calculate the check for hold policy 'from_home_library'

Currently we change the comparison based on ReservesControlBranch, however, that should
only control the rule we fetch, not how we compare

When ReservesControlBranch is set to "patron's home library" we compare the patron's branch to
the patron's branch, this is useless and means we pass the check for all branches all of the time

We should instead compare the patron's branch to the item's branch, and only fetch the rule using ReservesControlBranch

To test:
 1 - Have a record with an item from library A and library B
 2 - Set the 'Default checkout, hold and return policy'->Hold policy->From home library for all libraries
     and ensure you have no branch specific/itemtype specific rules set
 3 - Attempt to place a hold on the record for a patron from library B
 4 - Note that only the library B item is holdable - place a title level hold (do not choose an item)
 5 - Check in the item from library A
 6 - It fills the hold - This is incorrect - ignore the hold
 7 - Apply patch
 8 - Restart all the things
 9 - Check in the item from library A
10 - No hold found
11 - Check in the item from library B
12 - Hold found, correctly

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Bug 28503: Clarify what ReservesControlBranch controls

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-06-15 16:41:47 +02:00
..
preferences Bug 28503: Compare item homebranch to patron branch when hold policy set to 'from_home_library' 2021-06-15 16:41:47 +02:00
searchengine/elasticsearch Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
additional-fields.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
admin-home.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
adveditorshortcuts.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
aqbudgetperiods.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
aqbudgets.tt Bug 28223: Add data elements to negative budgets 2021-04-27 16:23:49 +02:00
aqcontract.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
aqplan.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
audio_alerts.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
auth_subfields_structure.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
auth_tag_structure.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
authorised_values.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
authtypes.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
background_jobs.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
biblio_framework.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
branch_transfer_limits.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
branches.tt Bug 27455: (follow-up) Add automatic focus to library name when editing 2021-04-27 16:23:49 +02:00
cash_registers.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
categories.tt Bug 23271: Remove 'selecteds' from Branches 2021-04-21 15:25:07 +02:00
checkmarc.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
cities.tt Bug 27465: Add column visibility to admin/cities.pl 2021-04-21 15:25:07 +02:00
classsources.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
clone-rules.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
columns_settings.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
credit_types.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
currency.tt Bug 26703: (follow-up) corrected currencies title 2021-04-21 11:16:35 +02:00
debit_types.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
desks.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
didyoumean.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
edi_accounts.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
edi_ean_accounts.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
item_circulation_alerts.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
items_search_field.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
items_search_fields.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
itemtypes.tt Bug 23207: (QA follow-up) Add new column on item types UI table 2021-04-22 11:11:05 +02:00
koha2marclinks.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
library_groups.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
localization.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
marc_subfields_structure.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
marctagstructure.tt Bug 28207: Fix biblio_framework.frameworktext isn't in GROUP BY 2021-04-30 17:07:32 +02:00
matching-rules.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
oai_set_mappings.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
oai_sets.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
overdrive.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
patron-attr-types.tt Bug 28345: Patron attributes no longer have option to select empty class 2021-05-17 12:34:33 +02:00
preferences.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
share_content.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
smart-rules.tt Bug 24154: Adjust assignment 2021-05-10 10:27:53 +02:00
sms_providers.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
smtp_servers.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
sru_modmapping.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
sru_modmapping_auth.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
systempreferences.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
transfer_limits.tt Bug 26703: (follow-up) fixed some page titles in files 2021-04-22 09:09:28 +02:00
transport-cost-matrix.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
usage_statistics.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00
z3950servers.tt Bug 26703: admin folder 2021-04-21 11:16:33 +02:00