From 6e6978d626ed12c560072c96655f456faad14cce 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=UTF-8 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 --- koha-tmpl/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 2c4e3fb408..d1d335d8b9 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.11.0