From 6500db3f97463c128a68892123e4b7b84c2eee51 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 19 Dec 2017 16:28:00 -0300 Subject: [PATCH] [SIGNED-OFF] Bug 19808: Do not display 'Added' alone It seems that reviews.datereviewed ends with NULL in DB. It is caused by another issue that will be fixed on another bug report. Signed-off-by: Jon Knight --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-showreviews.tt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-showreviews.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-showreviews.tt index 507c118..fceb84f 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-showreviews.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-showreviews.tt @@ -86,8 +86,12 @@ [% FILTER html_break %] [% review.review |html %] [% END %] - Added [% review.datereviewed | $KohaDates %] [% IF ( review.your_comment ) %] by you[% ELSE %] - [% IF ( review.borrowernumber && ShowReviewer != "none" ) %] by + + [% IF review.your_comment %] + Added [% review.datereviewed | $KohaDates %] by you + [% ELSE %] + [% IF ( review.borrowernumber && ShowReviewer != "none" ) %] + Added [% review.datereviewed | $KohaDates %] by [% SWITCH ShowReviewer %] [% CASE 'full' %] [% review.borrtitle %] [% review.firstname %] [% review.surname %] -- 2.1.4