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>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2017-12-19 16:52:03 -03:00 committed by Nick Clemens
parent 224d6df080
commit 005ca246a2
1 changed files with 1 additions and 0 deletions

View File

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