[Koha-bugs] [Bug 25008] Koha::RecordProcessor->options doesn't refresh the filters

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Mar 27 21:56:22 CET 2020


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

--- Comment #1 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 102019
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=102019&action=edit
Bug 25008: Regression tests

This patch highlights a behaviour of Koha::RecordProcessor that is
unexpected: if you change the original options using ->options, the
loaded filters don't pick the change. That's because the filter objects
are loaded on ->new, and they are never updated.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/RecordProcessor.t
=> FAIL: Test prove ->options doesn't update the filters!

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


More information about the Koha-bugs mailing list