Commit 977ada81 authored by Rafael Monnerat's avatar Rafael Monnerat

Removed "/" if extension does not exist



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21300 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9ec41b61
......@@ -401,6 +401,9 @@ class Telephone(Coordinate, Base):
notation=notation.replace('<number>',telephone_number)
notation=notation.replace('<ext>',telephone_extension)
if telephone_extension == '':
notation=notation.replace('/','')
return notation
security.declareProtected(Permissions.AccessContentsInformation,
......
This diff is collapsed.
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