fixes in sms control

This commit is contained in:
Anand Doshi 2012-12-25 18:45:35 +05:30
parent b7f0cbf914
commit da2d82cf6d

View File

@ -41,7 +41,7 @@ class DocType:
d = d.replace(x, '')
# mobile no validation for erpnext gateway
if webnotes.conn.webnotes.conn.get_value('SMS Settings', None, 'sms_gateway_url'):
if webnotes.conn.get_value('SMS Settings', None, 'sms_gateway_url'):
mob_no = d
else:
if not d.startswith("0") and len(d) == 10: