From e1c9386bd8a7b9e5e124525c7df9612e2cde5adf Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 20 Feb 2015 11:31:52 +0100 Subject: [PATCH] Bug 12395: Display created_by even if firstname is missing on receiving MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit On receiving orders, "no name" was displayed if the firstname of creator was not filled. The surname should be displayed. Signed-off-by: Paola Rossi Signed-off-by: Séverine QUEUNE Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart Signed-off-by: Nick Clemens --- .../intranet-tmpl/prog/en/modules/acqui/orderreceive.tt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt index 1719a081a0..087f6827f0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt @@ -176,10 +176,8 @@
  • - [% IF (creator && creator.firstname && creator.surname) %] - [% IF creator.firstname %] - [% creator.firstname %] - [% END %] + [% IF creator and (creator.firstname or creator.surname) %] + [% creator.firstname %] [% creator.surname %] [% ELSE %] No name -- 2.39.5