LP1821969 Additional fix to second_given_name
authorMichele Morgan <mmorgan@noblenet.org>
Mon, 16 Sep 2019 18:50:16 +0000 (14:50 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Mon, 21 Oct 2019 19:21:44 +0000 (15:21 -0400)
Adds primary second_given_name to the preferred name if there is no
preferred second_given_name. This matches the behavior of the other name
fields.

Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/templates/staff/circ/patron/t_summary.tt2

index a0de76c..11df48d 100644 (file)
@@ -8,7 +8,7 @@
           '{{patron().pref_prefix() || patron().prefix()}}',
           '{{patron().pref_family_name() || patron().family_name()}}',
           '{{patron().pref_first_given_name() || patron().first_given_name()}}',
-          '{{patron().pref_second_given_name()}}',
+          '{{patron().pref_second_given_name() || patron().second_given_name()}}',
           '{{patron().pref_suffix() || patron().suffix()}}')
         %]
       </div>