The Gitlab instance will be restarted on Monday April 28th at 2AM. There will be a short interruption of service.

Skip to content
Snippets Groups Projects
Commit 6b63812f authored by Chris Hallberg's avatar Chris Hallberg
Browse files

Phone validation switched to null.

parent c1855203
No related merge requests found
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
. '<li>' . $this->recordLink()->getBreadcrumb($this->driver) . '<span class="divider">&gt;</span> </li>' . '<li>' . $this->recordLink()->getBreadcrumb($this->driver) . '<span class="divider">&gt;</span> </li>'
. '<li class="active">' . $this->transEsc('Text this') . '</li>'; . '<li class="active">' . $this->transEsc('Text this') . '</li>';
$phone_pattern = '[\d-()\. ]*'; // Default that prevents invalid characters from submitting
if ($this->validation == 'US') { if ($this->validation == 'US') {
$phone_pattern = '^(\([2-9]\d{2}\)|[2-9]\d{2})[ -\.]?[2-9]\d{2}[-\.]?\d{4}$'; $phone_pattern = '^(\([2-9]\d{2}\)|[2-9]\d{2})[ -\.]?[2-9]\d{2}[-\.]?\d{4}$';
} }
...@@ -19,7 +18,7 @@ ...@@ -19,7 +18,7 @@
<div class="control-group"> <div class="control-group">
<label class="control-label" for="sms_to"><?=$this->transEsc('Number')?>:</label> <label class="control-label" for="sms_to"><?=$this->transEsc('Number')?>:</label>
<div class="controls"> <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>
</div> </div>
<? if (is_array($this->carriers) && count($this->carriers) > 1): ?> <? if (is_array($this->carriers) && count($this->carriers) > 1): ?>
......
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