1. indifex
  2. transifex

Commits

Diego Búrigo Zacarão  committed f7dce8d

bugfix: Fixed commit author if users do not fill the first name (#310)

  • Participants
  • Parent commits 7afd314
  • Branches default

Comments (0)

Files changed (1)

File transifex/settings/60-vcs.conf

View file
 # Username/email template to use for submissions
 VCS_USER_TEMPLATE = (u'{% if user.firstname %}'
     '{{ user.firstname }} {{ user.surname }} <{{ user.user.email }}>'
-    '{% else %}{{ user.username }} <{{ user.email }}>{% endif %}')
+    '{% else %}'
+      '{% if user.user %}'
+        '{{ user.user }} <{{ user.user.email }}>'
+      '{% else %}'
+        '{{ user.username }} <{{ user.email }}>'
+      '{% endif %}'
+    '{% endif %}'
+    )