]> git.koha-community.org Git - koha.git/commit
Bug 37182: Make Koha::Statistic->new preserve 'datetime' if passed
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 25 Jun 2024 18:01:29 +0000 (15:01 -0300)
committerLucas Gass <lucas@bywatersolutions.com>
Thu, 18 Jul 2024 20:26:59 +0000 (20:26 +0000)
commit500b272632cf009b6cb224433792527b5ba8a547
tree44fb0e581a5a3bee5904031410d3da7d90cfd6c9
parent9da2b8b604c3f94ff9705bf9bb9e0a3b8f55421a
Bug 37182: Make Koha::Statistic->new preserve 'datetime' if passed

This patch does what the title says. This behavior is tested on the
previous patch. Tests are also added for the background job (which
relies on Koha::Statistic->new and was the evidence of this
overwrite behavior).

To test:

1. Apply the regression tests patch
2. Run:
   $ ktd --shell
  k$ prove t/db_dependent/Koha/Statistic.t \
           t/db_dependent/Koha/BackgroundJob/PseudonymizeStatistic.t
=> FAIL: Tests don't pass :-/
3. Apply this patch
4. Repeat 2
=> SUCCESS: Tests pass!
5. Sign off :-D

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 65375bc34dd7e082331cbccc0299c6a99fea28ce)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Koha/Statistic.pm