[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
Mon Apr 13 12:53:44 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25008
Katrin Fischer <katrin.fischer at bsz-bw.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #102086|0 |1
is obsolete| |
--- Comment #14 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
Created attachment 102806
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=102806&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!
Signed-off-by: Jonathan Druart <jonathan.druart at bugs.koha-community.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83 at web.de>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list