]> git.koha-community.org Git - koha.git/commit
Bug 25019: Make the ViewPolicy filter initialization standard
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 30 Mar 2020 12:39:13 +0000 (09:39 -0300)
committerJoy Nelson <joy@bywatersolutions.com>
Fri, 1 May 2020 17:37:54 +0000 (17:37 +0000)
commite6c829d887b8b6aeda98a7ba57dc9ac04b79a7a3
tree2c7d5d651178faa9a2f2b22fd1929fcf92283b03
parentd1cb5f562e47be367bf17a8a689a378c88da954e
Bug 25019: Make the ViewPolicy filter initialization standard

This patch makes the ViewPolicy filter use the 'params' accessor instead
of relying of ->{options} which has no accessor. This will allow
interacting with the filter object be similar through all the filters in
the chain.

To test, we just need to verify no behaviour change takes place:
1. Run:
   $ kshell
  k$ prove t/db_dependent/Filter_MARC_ViewPolicy.t
=> SUCCESS: Tests pass
2. Apply this patch
3. Repeat 1
=> SUCCESS: Tests still pass!
4. Sign off :-D

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
Koha/Filter/MARC/ViewPolicy.pm