Bug 19843: (bug 15839 follow-up) Set reviews.datereviewed when the review is made

Caused by
  commit 092ae340ce
    Bug 15839: Koha::Reviews - Remove savereview

the datereviewed=now() part of the query has not been translated.

Test plan:
Add a review from the OPAC
Confirm that the reviews.datereviewd has been correctly set. Without
this patch it is set to NULL.

I have no idea how we could update existing data :-/

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2017-12-19 16:52:03 -03:00
parent e2d88cfb28
commit 11b562e0d1

View file

@ -87,6 +87,7 @@ if( !@errors && defined $review ) {
{ biblionumber => $biblionumber,
borrowernumber => $borrowernumber,
review => $clean,
datereviewed => dt_from_string
}
)->store->reviewid;
}