Do not overwrite telephone numbers; otherwise all TEL/NUMBER received

from a server will be blank.
This commit is contained in:
Richard Chan 2015-08-25 18:11:54 +08:00
parent abcec1e2d3
commit 53b56899a0

View File

@ -128,7 +128,8 @@ class Telephone(ElementBase):
def setup(self, xml=None):
super(Telephone, self).setup(xml=xml)
self._set_sub_text('NUMBER', '', keep=True)
## this blanks out numbers received from server
##self._set_sub_text('NUMBER', '', keep=True)
def set_number(self, value):
self._set_sub_text('NUMBER', value, keep=True)