From 6b63812f4d20e2f5dad64fd8804fe07746a60dd0 Mon Sep 17 00:00:00 2001 From: Chris Hallberg <crhallberg@gmail.com> Date: Mon, 23 Sep 2013 13:39:30 -0400 Subject: [PATCH] Phone validation switched to null. --- themes/bootstrap/templates/record/sms.phtml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/themes/bootstrap/templates/record/sms.phtml b/themes/bootstrap/templates/record/sms.phtml index cb55cc239e0..8c22c31be93 100644 --- a/themes/bootstrap/templates/record/sms.phtml +++ b/themes/bootstrap/templates/record/sms.phtml @@ -7,7 +7,6 @@ . '<li>' . $this->recordLink()->getBreadcrumb($this->driver) . '<span class="divider">></span> </li>' . '<li class="active">' . $this->transEsc('Text this') . '</li>'; - $phone_pattern = '[\d-()\. ]*'; // Default that prevents invalid characters from submitting if ($this->validation == 'US') { $phone_pattern = '^(\([2-9]\d{2}\)|[2-9]\d{2})[ -\.]?[2-9]\d{2}[-\.]?\d{4}$'; } @@ -19,7 +18,7 @@ <div class="control-group"> <label class="control-label" for="sms_to"><?=$this->transEsc('Number')?>:</label> <div class="controls"> - <input id="sms_to" type="tel" pattern="<?=$phone_pattern ?>" name="to" placeholder="<?=$this->transEsc('sms_phone_number')?>"/> + <input id="sms_to" type="tel"<? if(isset($phone_pattern)): ?> pattern="<?=$phone_pattern ?>"<? endif ?> name="to" placeholder="<?=$this->transEsc('sms_phone_number')?>"/> </div> </div> <? if (is_array($this->carriers) && count($this->carriers) > 1): ?> -- GitLab