Skip to content
Snippets Groups Projects
Commit 69c92913 authored by Jared Hancock's avatar Jared Hancock
Browse files

templates: %{ticket.phone} shows the entire number

Previously, due to a bug in Ticket::getPhone(), the first digit of the
formatted phone number was displayed only. This patch will allow display of
the entire formatted phone number.

Fixes osTicket/osTicket-1.8#248
parent 330e53e0
No related branches found
No related tags found
No related merge requests found
......@@ -297,16 +297,6 @@ class Ticket {
return '';
}
function getPhone() {
list($phone, $ext) = $this->getPhoneNumber();
return $phone;
}
function getPhoneExt() {
list($phone, $ext) = $this->getPhoneNumber();
return $ext;
}
function getPhoneNumber() {
return (string)$this->getOwner()->getPhoneNumber();
}
......@@ -1056,6 +1046,7 @@ class Ticket {
return call_user_func(array($this, 'get'.ucfirst($tag)));
switch(strtolower($tag)) {
case 'phone':
case 'phone_number':
return $this->getPhoneNumber();
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment