]> git.koha-community.org Git - koha.git/commit
Bug 22273: Modify Koha::ArticleRequest->store to fill created_on
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Wed, 18 Dec 2019 13:49:59 +0000 (13:49 +0000)
committerJoy Nelson <joy@bywatersolutions.com>
Wed, 1 Apr 2020 20:46:07 +0000 (20:46 +0000)
commit116abbc530dfffe66a55f39508aa5378a4118d18
tree3ccd782e665735aa3ae7fd86e0a3742370d5c791
parent06235e20eea8a8e619e6192edb0a8808297716ef
Bug 22273: Modify Koha::ArticleRequest->store to fill created_on

For a new record, store should fill created_on.
The database will always update the timestamp updated_on.
Since open also calls SUPER::store, we do not need to call it twice.

Test plan:
[1] Run t/db_dependent/ArticleRequests.t
[2] In the interface, add two article requests. Change the status of one
    to PROCESSING. Check created_on and updated_on in the article_requests
    table. The changed request should have updated_on > created_on.

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
[1] Tests pass
ok 12 - New article request has created_on date set
ok 13 - New article request has updated_on date set

[2] Work as described.
No errors

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
Koha/ArticleRequest.pm
t/db_dependent/ArticleRequests.t