[Koha-bugs] [Bug 29182] ArticleRequest status changing methods calling SUPER::store
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Oct 6 14:04:18 CEST 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29182
--- Comment #2 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 125780
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=125780&action=edit
Bug 29182: Make sure methods call the overloaded ->store
This patch addresses the issue of `request()` and `set_pending()`
calling $self->SUPER::store instead of the overloaded one.
This prevents created_on being set.
To test:
1. Apply the regression tests patch
2. Run:
$ kshell
k$ prove t/db_dependent/Koha/ArticleRequest.t
=> FAIL: created_on is not set on two methods
3. Apply this patch
4. Repeat 2
=> SUCCESS: created_on is now set!
5. Sign off :-D
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list