Commit 8ef9d06a authored by Kevin Deldycke's avatar Kevin Deldycke

Add some test when we generate the title to have a nice one (without unconsistent space char)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2453 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f55ad3e6
......@@ -136,11 +136,11 @@ etc.)."""
"""
if self.title == '':
name_list = []
if self.getFirstName():
if self.getFirstName() not in (None, ''):
name_list.append(self.getFirstName())
if self.getMiddleName():
if self.getMiddleName() not in (None, ''):
name_list.append(self.getMiddleName())
if self.getLastName():
if self.getLastName() not in (None, ''):
name_list.append(self.getLastName())
return ' '.join(name_list)
else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment