Bug 12395: Display created_by even if firstname is missing on receiving
authorJonathan Druart <jonathan.druart@biblibre.com>
Fri, 20 Feb 2015 10:31:52 +0000 (11:31 +0100)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 6 Jul 2018 14:01:48 +0000 (14:01 +0000)
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 <paola.rossi@cineca.it>
Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt

index 1719a08..087f682 100644 (file)
        <li>
         <label for="creator">Created by: </label>
         <span>
-          [% 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