Validation strips off the initial "0" in a phone number,
This patch switches off the stripping of "0" if number starts with 0 and provides a global setting in field "edit".

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ravyg’s picture

Adding patch to add:
settings for "Force keep starting "0s" in phone numbers"
This adds a condition and flexibility for administrator to stop stripping initial '0' is he wants 0 to be displayed before his phone number
Eg:
if number to be show is 04123456 (number entered in phone field).

NOTE: this is a quick patch will check for other implemtations and add changes.

ravyg’s picture

Assigned: ravyg » Unassigned
Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, 1: phone-force-keep-initial-zero-setting-2286839-1.patch, failed testing.