[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 Mar 30 16:26:03 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25008
Jonathan Druart <jonathan.druart at bugs.koha-community.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #102019|0 |1
is obsolete| |
Attachment #102082|0 |1
is obsolete| |
Attachment #102083|0 |1
is obsolete| |
--- Comment #7 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Created attachment 102086
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=102086&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>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list