From 2502bfb1af0176012b5603e281d4db778e399681 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 19 Dec 2017 16:52:03 -0300 Subject: [PATCH] Bug 19843: (bug 15839 follow-up) Set reviews.datereviewed when the review is made Caused by commit 092ae340cef375cc66c8511fd34c1a4eec9c7ba6 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 --- opac/opac-review.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/opac/opac-review.pl b/opac/opac-review.pl index 39af047..b4a26be 100755 --- a/opac/opac-review.pl +++ b/opac/opac-review.pl @@ -87,6 +87,7 @@ if( !@errors && defined $review ) { { biblionumber => $biblionumber, borrowernumber => $borrowernumber, review => $clean, + datereviewed => dt_from_string } )->store->reviewid; } -- 2.1.4